Because when teh form gets submitted the value of the field is "Filename.tmp" so when you do ListLast your still getting .tmp as the extention
What your going to need to do is tomething like this <form> <input type="File" name="file1" onchange="this.form.file2.value = this.value"><br> <input type="Text" name="file2"> </form> then <cffile action="upload" filefield="file1" destination="c:\temp\#session.CFID#.#ListLast(form.file2, ".")#" nameconflict="makeunique"> That way you get the actual name of the file getting submitted along with the rest of the form Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jeremy Sent: Thursday, November 20, 2003 3:58 PM To: CFAussie Mailing List Subject: [cfaussie] cffile upload temp directory Arg... <cffile action="upload" filefield="resume" destination="c:\temp\#session.CFID#.#ListLast(form.resume , ".")#" nameconflict="makeunique"> I have a file that is uploading to this location. However it is renaming the file with .tmp... BUT!! I disovered when I output form.resume that its going to this path... C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\neotmp54361 .tmp BEFORE it hits the c:\ directory. WT? I believe this is why its renaming the file to a tmp. Has anyone out there had a simular problem and is there a way to just have it go directly to the folder you specify? Thanks!! Jeremy --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
