If an uploaded file has the extension in anything but all lower case, the errorThis type of file is not supported is raised because the extension is being matched by the values in the MIME_TYPES constant. Adding a downcase when checking the extension will allow files to be uploaded with an extension that is upper or lower case and verify the file type.
If an uploaded file has the extension in anything but all lower case, the error
This type of file is not supported
is raised because the extension is being matched by the values in theMIME_TYPES
constant. Adding adowncase
when checking the extension will allow files to be uploaded with an extension that is upper or lower case and verify the file type.