Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Mime and type of files are inconsistent #435

Open
clochix opened this issue Jul 4, 2016 · 1 comment
Open

Mime and type of files are inconsistent #435

clochix opened this issue Jul 4, 2016 · 1 comment
Labels

Comments

@clochix
Copy link
Contributor

clochix commented Jul 4, 2016

When uploading a file, we try to guess its MIME type and set a class (audio, video…). But we don't use the same method:

  • MIME type is guessed from the file extension;
  • class is determined by the content-type sent by the browser.

We should probably use the same method to set both of this value.

(sample : when uploading a .ogg file, Firefox set a wrong content-type of video/ogg, so the class of the document is set to video, but it's MIME type determined from the file extension is audio/ogg)

@clochix clochix added the bug label Jul 4, 2016
@jsilvestre jsilvestre changed the title Mime and type of files are inconsistant Mime and type of files are inconsistent Aug 12, 2016
@clochix
Copy link
Contributor Author

clochix commented Jan 1, 2017

This issue is pretty annoying, as it prevent importing Ogg files to Music. They are labeled as Video, so Music doesn't import them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant