Support » Plugin: WP Multi File Uploader » 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'] ) )

    https://wordpress.org/plugins/wp-multi-file-uploader/

Viewing 1 replies (of 1 total)
  • Plugin Author dholloran

    (@dholloran)

    Greetings,

    Thank you for the fix I have added it and a new release should be available shortly. I thought I had fixed this awhile ago I guess it never made it into a release.

    Thanks,
    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with File Type – case sensitive’ is closed to new replies.