cozy / cozy-stack

Simple, Versatile, Yours
https://docs.cozy.io/en/cozy-stack/
GNU Affero General Public License v3.0
1.13k stars 137 forks source link

Improve mime-type detection for uploaded files #4353

Closed nono closed 6 months ago

nono commented 6 months ago

It happens that .odt files are uploaded as application/octet-stream (the default content-type used by browsers when they don't know better), and when it is the case, those files cannot be opened in the web Open-Office. We can do better by using the file extension.