Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB