Issue with File Type – case sensitive
-
It is really Very Nice Plugin.
I have come across one issue which was not allowing me to upload the file in my wordpress site. Currently, The plugin treat .jpg and .JPG as different format. By default it is allowing to upload .jpg files, if the file is having extension in capital later(for example: Test.JPG) it is rejecting the upload and treating as not supported format.
We can resolve the issue by updating following fix:
File: class-wpmfu-file-upload-handler.php
Function: check_file_type
Suggestion: add strtolower while comparing file extension.Old Line:
if ( in_array( $filetype['ext'], $wpmfu_post_options['allowed_mime_types'] ) )
New Suggested Change:
if ( in_array( strtolower($filetype['ext']), $wpmfu_post_options['allowed_mime_types'] ) )
- The topic ‘Issue with File Type – case sensitive’ is closed to new replies.