Very cool mod but I'm having some severe issues with Header/MIME types for various multimedia downloads.
I have a number of .mp4, .wmv, and .divx video files for download, and have added the appropriate extensions for each in the DownloadsII Settings. They all have the same basic settings:
- Lowercase extension
- No maximum filesize/width/height
- Appropriate MIME type (video/mp4, video/divx, video/wmv)
- Usage: File Extension
- Open in new browser/Open File directly both set to "no"
- Enabled set to "yes"
In spite of this, as best I can tell, it seems that no matter what I do or don't enter in the MIME/Header box for the .mp4/.wmv files, no actual change is illustrated when downloading the files. In both cases, the browser does not prompt for a file save, and instead plays the files in-browser in both cases, in both Chrome and Firefox. The .divx files, on the otherhand, properly prompt a save-as dialog in both browsers.
I've tried all manner of entries in the MIME/Headers, including:
Code:
Content-type: video/mp4
Code:
Content-type: application/mp4
Code:
Content-disposition: attachment; filename=test.mp4
Content-type: video/mp4
And of course leaving the MIME/Header boxes empty as well, but to no avail. Other than a brief mention in this thread of issue with .zip files which was resolved with application/zip, I really haven't found that others are having this issue, so any advice would be much appreciated.
The only question I would raise/wonder about is whether DownloadsII is sending the MIME/Headers for files that are not directly uploaded using DownloadsII, but instead are pre-existing files where the "Link to the File" is manually added during the creation process? I suspect not though, as the d2 database entries seem to grab the proper file extension from the provided link, so they are properly listed as .mp4/.wmv/etc in the database.
It may also be worth noting that regardless of the settings in the extensions, when downloading either an .mp4 or .wmv filetype, the file is opened directly in the browser in a new window, even though as mentioned, both "open in new window" and "open file directly" are marked as no. Changing these settings seem to have no affect.
Any assistance or guidance would be much-appreciated on this topic! Many thanks.