What is the value of: "#request.ImagePath#"

Things to check, does it have a trailing slash?

Pablo Varando
http://www.cfpablo.com
http://www.easycfm.com
----- Original Message -----
From: "Matt Robertson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 5:16 PM
Subject: CFFILE READ right after UPLOAD not working


> This code doesn't work:
>
> <CFFILE
> ACTION="Upload"
> FILEFIELD="FileContents"
> DESTINATION="#request.ImagePath#"
> NAMECONFLICT="MAKEUNIQUE"
> ACCEPT="text/plain">
> <CFFILE
> ACTION="READ"
> FILE="#request.ImagePath##file.ServerFile#"
> VARIABLE="ImportTxt">
>
> Returns a file not found.  But its fine (I checked).  Thinking I was maybe
trying to read the file before the O/S was done writing it, I inserted this
loop between the two and sure enough, the code works now.
>
> <CFSET variables.mycounter=0
> <CFLOOP
> INDEX="Num1"
> FROM="1"
> TO="1000">
> <CFSET variables.mycounter=variables.mycounter+1>
> </CFLOOP>
>
> There's got to be a better way.  Anyone have any ideas?
>
> ---------------------------------------
> Matt Robertson    [EMAIL PROTECTED]
> MSB Designs, Inc., www.mysecretbase.com
> ---------------------------------------
>
>
> 
______________________________________________________________________
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