Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Add strtolower for file-extension in upload.php
#5
(2017-09-04, 04:50:12)datiswous Wrote: Isn't it possible to include this in the Imagizer Plugin, since (assuming) the problem only applies to that plugin?

It's difficult (for me, anyway ...) because there is already a conversion to lowercase by the GS native upload, but it only changes the filename, not the extension. However, the file information exported from the GS upload has the filename (and extension) in the same case as the file that was transferred.

Thus, if I upload a filename such as IMG_1000.JPG (quite common from a camera), the GS upload saves a file named img_1000.JPG, but it reports the filename as 'IMG_1000.JPG'.

This means that there has to be much more manipulation of the reported filename to allow further processing in order to avoid errors ('No such file or directory ...').

It would be much more consistent if GS changed the complete filename, including the extension.
--
Nick.
Reply


Messages In This Thread
RE: Add strtolower for file-extension in upload.php - by hameau - 2017-09-10, 19:37:45



Users browsing this thread: 1 Guest(s)