Last modified: 2006-02-05 18:23:00 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 T6878, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.6.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links