-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebM files are served as Content-Type: application/octet-stream #30
Comments
I believe this is a result of two things: Nginx being set to default to application/octet-stream, and Fuwa simply serving files without any MIME type checking/setting. I'm sure Flask MIME operations are supported at some level and can be integrated fairly easily. |
Flask should detect the MIME type automatically. Maybe it's really limited? |
Is there not some form of more advanced MIME detection/header setting with Flask? |
Sure, you can pass |
I assume Python has some way to read the first few bytes of any given file and return the MIME type. Using detection like that with manual mimetype setting should probably work. |
The file object on upload should have a content type var |
It should be
video/webm
; otherwise many browsers treat it as a download. Similarly.ogv
should bevideo/ogg
..mp4
appears to be working correctly. I haven't tried any other types.The text was updated successfully, but these errors were encountered: