maemo.org Bugzilla – Bug 3476
Upload of ods file fails
Last modified: 2009-09-29 17:29:07 UTC
You need to log in before you can comment on or make changes to this bug.
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.
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.
Solution: add the missing file extensions to includes/mime.types