All that stuff is perfect. I ran thru that when I was debugging. As I mentioned at the tail end of the message, simply inserting a time delay into the code fixed the problem and it works fine. Like the upload thread hadn't finished before the read thread started.
waitasec... hmmm. I'll bet a cflock to single-thread the process would do the trick. --------------------------------------- Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc., www.mysecretbase.com --------------------------------------- ---------- Original Message ---------------------------------- from: "Pablo Varando" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] date: Mon, 26 Aug 2002 17:18:51 -0700 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 > --------------------------------------- > > > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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

