2012-04-03 174 views
0

嗨,这是我的coe下载快速视频和.mov视频。虽然在某些情况下它可以在浏览器本身播放快速视频,并且有时会通过提示下载快速视频,但它工作正常。我无法找到任何解决方案,我想不下载视频。如何解决这个问题?视频无法下载。开始播放

<span class="quick_time_dl"><a href="index.cfm?event=location.index&section=download&topic_id=<cfoutput>#URLDecode(url.topic_id)#</cfoutput>&video_id=<cfoutput>#URLDecode(url.video_id)#</cfoutput>&video_name=<cfoutput>#q.url_mov#</cfoutput>&video_type=lif_mov">Quicktime</a> 
</span> 
<span class="win_media_dl"><a href="index.cfm?event=location.index&section=download&topic_id=<cfoutput>#URLDecode(url.topic_id)#</cfoutput>&video_id=<cfoutput>#URLDecode(url.video_id)#</cfoutput>&video_name=<cfoutput>#q.url_wmv#</cfoutput>&video_type=lif_wmv">Windows Media</a></span> 

回答

5

可以在标题标签设置的内容的信息:

请使用此代码,以用于下载视频或任何文件中的页面:这应该被写

<cfheader name="Content-Type" value="application/octet-stream"> 
<cfheader name="Content-Disposition" value="attachment;filename=""filename.mov"""> 
<cfheader name="Content-Location" value="#expandPath('/media/filename.mov')#"> 
<cfcontent type="application/octet-stream" file="#expandPath('/media/filename.mov')#"> 

您事件处理程序或制作单独的布局模板。