Html 视频无法下载。开始演奏

Html 视频无法下载。开始演奏,html,coldfusion,coldfusion-9,Html,Coldfusion,Coldfusion 9,您好,这是我的coe下载的快速时间视频和.mov视频。虽然在某些情况下,它会在浏览器上播放快速时间视频,有时还会在提示下下载快速时间视频,但效果很好。我找不到任何解决方案,我想下载视频而不播放它。如何解决这个问题 <span class="quick_time_dl"><a href="index.cfm?event=location.index&section=download&topic_id=<cfoutput>#URLDecode(url.t

您好,这是我的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>

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

请使用此代码制作下载视频或任何文件的页面:

<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')#">


这应该写在事件处理程序中,或者制作一个单独的布局模板。

您可以在标题标记中设置内容信息:

请使用此代码制作下载视频或任何文件的页面:

<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')#">

这应该写在事件处理程序中,或者制作一个单独的布局模板