https://bugzilla.wikimedia.org/show_bug.cgi?id=26809

           Summary: Incorrect detection of mime type and extension while
                    uploading.
           Product: MediaWiki
           Version: 1.16.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Uploading
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: day...@epicwhale.org
                CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com


If I upload a file with the name 'TextmeEncryption.php.zip' I get the following
error message.

 ".zip" is not a permitted file type. Permitted file types are png, gif, jpg,
jpeg, zip.

I have also added the following to my list LocalSettings.php

$wgFileExtensions[] = 'zip';
$wgVerifyMimeType = false; //disable mime type verification

If I rename the file to 'TextmeEncryption_php.zip', it works fine! 

But this shouldn't be the expected behavior. The first file name used is
absolutely appropriate too (Both in terms of naming and mime-type).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to