I keep getting this error. Only the user is not consistant nor the situation.
Most users close there browser then reopen and the file opens.
Message: The cause of this output exception was that:
java.io.FileNotFoundException: y:\repository\rmc_support\Water
Energy\Files_public\Product Data SheetsCS-32 PDS.pdf (The system cannot find
the file specified).
Is there is a better solution for displaying folder content plasea advise.
Here is my code. It is a modified version of file manager.
<cfif isdefined('session.dintranet') and isdefined('DOWNLOADFILENAME') and
isdefined('FILEVIEW')>
<cfset filename = session.dintranet & fileview>
<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="inline;
filename=#downloadFilename#">
</cfif>
<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>
ECT....
<cfdefaultcase><cfset MIME = "*/*"></cfdefaultcase>
</cfswitch>
<cfcontent reset="yes" type="#MIME#" file="#filename#"
deletefile="No">
Keith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:263906
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4