Closed Bug 397718 Opened 17 years ago Closed 17 years ago

[wikimo] Uploading PNG doesn't work

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: samuel.sidler+old, Assigned: oremj)

Details

When trying to upload a PNG, I get the fun "The file is corrupt or has an incorrect extension. Please check the file and upload again." error.

Fix me please?
Assignee: nobody → server-ops
Component: Other → Server Operations
Product: Websites → mozilla.org
QA Contact: other → justin
Version: unspecified → other
Most likely the same issue as bug 382161.
OS: Mac OS X → All
Hardware: PC → All
Assignee: server-ops → oremj
Reed, what change did you make to fix that bug?
It's either an issue with the mime-type magic file that apache controls (http://httpd.apache.org/docs/2.0/mod/mod_mime_magic.html) or just a problem with MediaWiki and/or PHP parsing the magic file correctly. You can probably just change MediaWiki to use an external mime-type detector by setting |$wgMimeDetectorCommand = "file -bi";| (see http://www.mediawiki.org/wiki/Manual:Mime_type_detection and http://www.mediawiki.org/wiki/Manual:%24wgMimeDetectorCommand).
Switched to file -bi seems to work.  I tested with http://wiki.mozilla.org/Image:Pnglogo-grr-sml.png
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.