The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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: 3 Guest(s)