Bug 3476 - Upload of ods file fails
: Upload of ods file fails
Status: RESOLVED FIXED
Product: maemo.org Website
Wiki
: unspecified
: All All
: Medium normal (vote)
: ---
Assigned To: Ferenc Szekely
: midgard@maemo.org
: https://wiki.maemo.org/Special:Upload
:
:
: 3831
  Show dependency tree
 
Reported: 2008-07-21 12:51 UTC by Niels Breet
Modified: 2009-09-29 17:29 UTC (History)
2 users (show)

See Also:


Attachments


Note

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


Description Niels Breet (reporter) maemo.org 2008-07-21 12:51:55 UTC
STEPS TO REPRODUCE THE PROBLEM:
Upload a .ods file to the wiki via https://wiki.maemo.org/Special:Upload

EXPECTED OUTCOME:

Upload succeeds.

ACTUAL OUTCOME:

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

REPRODUCIBILITY:
always

OTHER COMMENTS:

I've added .ods to the list of allowed file types and it shows up on the upload
page as:
Permitted file types: png, gif, jpg, jpeg, odt, odp, ods, odg, pdf.
Comment 1 Ferenc Szekely maemo.org 2009-09-29 17:27:06 UTC
The Oo.org docs are recognized with application/zip MIME type. The wiki engine
has a list to check MIME types and matching file extensions. Obviously .odt and
.ods are not assigned to application/zip there.
Comment 2 Ferenc Szekely maemo.org 2009-09-29 17:29:07 UTC
Solution: add the missing file extensions to includes/mime.types