Hi,

Yes...me again!

I'm using the following code to open a file in UltraEdit. It's working 
except for the file path specified in the editor when the file gets opened.

<cfset FileName = ListLast(url.filename, "\")>
<cfset DirPath = Left(url.filename, Evaluate(Len(url.filename) - 
len(FileName) - 1))>

<cfoutput>
        <cfheader name="Content-Disposition" value="inline; filename=#FileName#">
        <cfcontent type="application/dat" file="d:/dir1/subdir1/#FileName#" 
deletefile="No">
</cfoutput>


[D:\Documents and Settings\user.name\Local Settings\Temporary Internet 
Files\Content.IE5\SD6XVCDR\filename[1].dat]

Below is a reply I received from a forum regarding my problem.

<quote>

Not. RFC 2616 explicitly forbids the interpreation of path info by a 
browser because it could be a security risk. So your browser will not pass 
this info on to UltraEdit.

</quote>

This is correct but I think it was an intentional interpretation. I know 
that people have "hacked" around this (I can recall instances where I went 
to save files and it ended up trying to go to the floppy disk for example).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to