Last modified: 2011-01-25 00:19:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24819, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22819 - JPEG Image Upload = 'File extension does not match MIME type'
JPEG Image Upload = 'File extension does not match MIME type'
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.17.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-12 20:43 UTC by ZRHwiki
Modified: 2011-01-25 00:19 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description ZRHwiki 2010-03-12 20:43:51 UTC
Uploading a JPEG image results always in the following error message:

'File extension does not match MIME type.'

I am able to reproduce the issue with all kind of JPEG pictures (i.e. my own, from Google Images, from Wikipedia, etc.)

Please let me know if you need further information, thank you.
Comment 1 ZRHwiki 2010-03-12 21:09:27 UTC
In German, the error message is the following:

'Dateierweiterung stimmt nicht mit dem MIME-Typ überein.'

The issue is reproducible with the latest SVN version of MediaWiki.
Comment 2 Nat Makarevitch 2010-03-14 12:37:11 UTC
Same here (MW 1.17alpha (r63735)) with a PNG file.

In upload/UploadBase.php the 'verifyFile' function debug shows:
"mime: <image/png> extension: <>"

Thank you
Comment 3 Bryan Tong Minh 2010-03-20 23:01:11 UTC
Can you give a link to a specific image that causes this error?
Comment 4 ZRHwiki 2010-03-21 11:46:23 UTC
(In reply to comment #3)
> Can you give a link to a specific image that causes this error?

http://zrhwiki.ch/tmp/test.jpg
Comment 5 ZRHwiki 2010-03-22 14:57:22 UTC
(In reply to comment #0)
> Uploading a JPEG image results always in the following error message:
> 
> 'File extension does not match MIME type.'
> 
> I am able to reproduce the issue with all kind of JPEG pictures (i.e. my own,
> from Google Images, from Wikipedia, etc.)
> 
> Please let me know if you need further information, thank you.

The issue is not limited to JPEG pictures, all uploads are affected.
Comment 6 Bryan Tong Minh 2010-04-08 14:51:54 UTC
Does your debug log tell you more about the mime type? The file you linked was correctly identified as image/jpeg on my test wiki.
Comment 7 ZRHwiki 2010-04-08 19:33:55 UTC
I am no longer able to reproduce the problem. The reason might be a recent web server update, i.e. the old configuration might have caused the problem.

Thank you for your help!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links