> What are you doing at the mo ?
>
> <cfcontent type="application/x-shockwave-flash" reset="true">
> <cfheader name="content-disposition" value="attachment; filename=a.
> swf">
>
> ?
Actually no, what I was doing was running the following code from a .cfm page:
<cfreport template="#url.reportName#.cfr" format="flashpaper">
So the extension of the requested page was .cfm but the MIME type of the actual
content returned was application/x-shockwave-flash
What I ultimately wound up doing to solve this problem was having cfreport
create a file and then cflocate to it:
<cfset currentDir = getDirectoryFromPath(getCurrentTemplatePath())>
<cfdirectory directory="#currentDir#" name="fileList" filter="report_*.swf">
<cfloop query="fileList">
<cffile action="delete" file="#currentDir##fileList.name#">
</cfloop>
<cfset filename = "report_#GetTickCount()#.swf">
<cfreport
template="#url.reportName#.cfr"
format="flashpaper"
filename="#currentDir##filename#">
<cflocation addtoken="no" url="#filename#">
This way the cfreport tag creates an actual file that I can cflocate to,
therefore the user winds up pulling back a .swf file with a MIME type of
application/x-shockwave-flash. Since the file extension and MIME now match, no
more security warnings.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290573
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4