Chrome appends .html on movies
Bug #608265 reported by
Jack Ireland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Helioviewer.org |
Fix Released
|
Medium
|
Jaclyn Beck |
Bug Description
Chrome 5.0.375.99 on OS X 10.6.3 appends .html to .mov files created by helioviewer.org.
Changed in helioviewer.org: | |
importance: | Undecided → Medium |
summary: |
- [HV] Chrome appends .html on movies + Chrome appends .html on movies |
Changed in helioviewer.org: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
When the code that lets you download the file is run, it sets the content- disposition: header( "Content- Disposition: attachment; filename=\"" . basename($url) . "\";");. Normally, browsers can tell by the extension on the filename what the content-type should be. Chrome (and possibly Safari) doesn't know what to do with "mov", so it just returns html. I changed it so that if the filetype is "mov", the content-type is set to "video/quicktime", which Chrome knows how to handle.