Last modified: 2010-05-15 15:48:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8791 - PNG images cannot be uploaded
PNG images cannot be uploaded
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-01-26 22:59 UTC by jeremybuchmann
Modified: 2010-05-15 15:48 UTC (History)
0 users

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


Description jeremybuchmann 2007-01-26 22:59:31 UTC
PNG images are prevented from being uploaded.  Other image formats work fine. 
The error message is:

Upload warning
The file is corrupt or has an incorrect extension. Please check the file and
upload again.

My $wgFileExtensions looks like:

$wgFileExtensions = array('jpg','png','jpeg','gif','ogg','doc','xls','ppt','mp3'

The problem seems to stem from the following line in the verify() function in

$mime= $magic->guessMimeType($tmpfile,false);

$mime comes back as "text/plain" which doesn't match the extension "png".
Comment 1 jeremybuchmann 2007-01-26 23:00:18 UTC
I should add that this is on Fedora Core 6.
Comment 2 Daniel Kinzler 2007-01-26 23:03:39 UTC
Please read the FAQ before filing bug reports - see

The cause is mostly likely a misconfigured php module.

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