Right Ian. I understand that part. But consider this: 1) User uploads myFile.txt 2) CF puts it into c:\temporary\directory\neo12345.tmp 3) Form field value has c:\temporary\directory\neo12345.tmp 4) code calls <cffile action="upload" ... /> 5) If I did not specify a new file name in the destination attribute, the file retains the "myFile.txt" name. 6) If I specified a variable for the result attribute (e.g. myUploadResult), I can get to that file name via myUploadResult.clientFile
My question, and this is more out of curiosity than anything, is how does CF "remember" the original user's file name of "myFile.txt" between steps 3 and 4 above. Looking through the various scopes doesn't seem to reveal it. The form field, as you mentioned is a random name in a temporary directory. Matt On 10/10/07, Ian Skinner <[EMAIL PROTECTED]> wrote: > Back from an unintentionally long weekend. > > I presume the file name is part of the HTTP data sent by the browser > through the web server to ColdFusion. If you output the form file field > you will see a long random character name of the temporary file created > by the web server that is where ColdFusion gets the file to move where > specified by the cffile call. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290774 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4