Last modified: 2006-02-05 18:23:00 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 4878 - The file format should be specified by the uploader, not by the extension in the server
The file format should be specified by the uploader, not by the extension in ...
Status: CLOSED DUPLICATE of bug 4421
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-02-05 18:07 UTC by Rotem Liss
Modified: 2006-02-05 18:23 UTC (History)
0 users

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


Description Rotem Liss 2006-02-05 18:07:08 UTC
Nowadays, we should upload a PNG version of images as "IMAGE.png", a JPG version
of images as "IMAGE.jpg", a SVG version of images as "IMAGE.svg", and so on. Why
should it be so? We can just specify the file format (image/gif, image/jpg,
image/png or image/svg (or maybe it is text/svg?)) in the upload page, and
upload to every name we can choose. (Also, there may be another option,
"Auto-Select", and the server may recognize the file type by itself, by the
extension of the uploaded file.)

The problem may be the fact, JPG images could be a file with the name
"IMAGE.svg" in your server - but the browser uses the MIME type, so send the
correct MIME type and it will be OK. Look at Bugzilla, for example - all the
attachment pages are cgi, and still we can upload every file type. (No names
here, of course...)

By the way, when the server suggests the file name based on the uploaded file
name, it should ignore the extension (in the destination file name) if you
include that.
Comment 1 Rob Church 2006-02-05 18:22:50 UTC

*** This bug has been marked as a duplicate of 4421 ***

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