• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
save image extension as lower case instead of myimage.JPG upper case

#1
[eluser]coderex[/eluser]
Upload.php in the library saves the extensions in upper case, if the source file is originally saved as uppercase. Is there change I can make in the Upload.php in the standard lib,so it saves it as lowercase? as apache is case sensitive, references to file in lower case are not shown.

I didn't include this code as it's too long.

Thanks

#2
[eluser]gullah[/eluser]
You can extend the Upload class set_filename function to use the strtolower function.
Or you can set the filename yourself using this option:

file_name None Desired file name

If set CodeIgniter will rename the uploaded file to this name. The extension provided in the file name must also be an allowed file type.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.