The files don't move. (I wish I could get them to update more often)
First I check to see if the seesion is defined
<cfif isdefined('session.dintranet') and isdefined('DOWNLOADFILENAME') and
isdefined('FILEVIEW')>
<cfset filename = session.dintranet & fileview>
Then I check to see if it is a movie wav file
<cfif Right(filename,3) EQ "avi" or Right(filename,3) EQ "wmv">
<cfheader name="Content-Disposition"
value="attachment; filename=#downloadFilename#">
<cfelse>
<cfheader name="Content-Disposition"
value="filename=#downloadFilename#">
</cfif>
The I set MIME type
<cfswitch expression="#Right(filename,3)#">
<cfcase value="ai"><cfset MIME =
"application/postscript"></cfcase>
<cfcase value="aif"><cfset MIME =
"audio/x-aiff"></cfcase>
<cfcase value="aifc"><cfset MIME =
"audio/x-aiff"></cfcase>
<cfcase value="aiff"><cfset MIME =
"audio/x-aiff"></cfcase> <cfcase value="asc"><cfset MIME =
"text/plain"></cfcase>
ECT...
then open the file
<cfdefaultcase><cfset MIME = "*/*"></cfdefaultcase>
</cfswitch>
<cfcontent type="#MIME#" file="#filename#" deletefile="No">
Here is the link it is comming frome
<cfelseif #Right(name,3)# EQ "pdf">
<img src="file_repository/images/dir_pdf.gif"><a
href="file_repository/view.cfm?&fileview=#slash##name#&downloadFilename=#urlEncodedFormat(name)#"
target="_blank">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263291
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4