Thread: Major Additions - DownloadsII
View Single Post
  #632  
Old 04-19-2010, 10:09 PM
gabestah gabestah is offline
 
Join Date: Mar 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
video/mp4
Code:
application/mp4
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete