Default Accepted Media Types


#1

Please consider updating the Default Accepted Media Types for file uploads.

Users get really turned off when they try to share a simple Excel document and get rejected.

This is the default value:

'image/*,audio/*,video/*,application/zip,application/x-rar-compressed,application/pdf,text/plain,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document'

This is the value from open.rocket.chat:

*.sketch,image/*,audio/*,video/*,application/zip,application/gzip,application/x-gzip,application/x-rar-compressed,application/pdf,text/plain,text/markdown,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,text/csv,application/vnd.android.package-archive

Which allows for Excel files and more.

What else should be added to the list and made default?

http://checkfiletype.com/ may be a good place to look.

[ thanks to @bradley.hilton for helping track this down ]


#2

Would be nice to add application/x-zip to support LibreOffice formats: odf, odg, ods, odt, odp


#3

Yes let’s please set a sign for open source collaboration.

application/x-zip is what checkfiletype.com identifies but that does not work. We have tested in a local setup and it looks like this list should work for LibreOffice files (have not tested all of them).

application/vnd.oasis.opendocument.text,
application/vnd.oasis.opendocument.text-template,
application/vnd.oasis.opendocument.text-master,
application/vnd.oasis.opendocument.spreadsheet,
application/vnd.oasis.opendocument.spreadsheet-template,
application/vnd.oasis.opendocument.chart,
application/vnd.oasis.opendocument.presentation,
application/vnd.oasis.opendocument.presentation-template,
application/vnd.oasis.opendocument.graphics,
application/vnd.oasis.opendocument.graphics-template,
application/vnd.oasis.opendocument.formula,
application/vnd.oasis.opendocument.database,
application/vnd.oasis.opendocument.image,

According to https://wiki.documentfoundation.org/Faq/General/036