hey steve, there is another way I just got to get my hands on the code I'll let you know tomorrow.
Thanks for your help Jeremy > if your going to do that, then your going to have to do 1 of 2 things > > Either pass another hidden field from the form with the actual file name or > wait till its uploaded, then rename it once its on the server > > Steve > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Jeremy > Sent: Thursday, November 06, 2003 1:58 PM > To: CFAussie Mailing List > Subject: [cfaussie] RE: CFFILE renaming session > > > hey steve, > > What a dork. Got it working needed to have the extention on it. derr. Is > there a way to make the extention dynamic to what is being uploaded? > > <cffile action="upload" filefield="resume" > destination="c:\temp\#session.CFID#.#dynamic bit#" > nameconflict="makeunique"> > > > Hi Steve, > > > > Thanks man, didn't work. got the follwing error. > > String index out of range: -2 > > > > I think I might have to try to find a why of getting the document that I'm > > uploading it then renaming it. After its been uploaded but I'm concern > > this might stuff up somewhere along the way. > > > > J. > > > > > Jeremy > > > > > > add it into the destination > > > > > > <cffile action="upload" filefield="resume" > > > destination="c:\temp\#session.CFID#.ext" nameconflict="makeunique" > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf Of Jeremy > > > Sent: Thursday, November 06, 2003 1:20 PM > > > To: CFAussie Mailing List > > > Subject: [cfaussie] CFFILE renaming session > > > > > > > > > Hi guys, > > > > > > I'm having a mental moment. I am uploading a file to the server. using > the > > > following code. > > > > > > <cffile action="upload" filefield="resume" destination="c:\temp" > > > nameconflict="makeunique" file="#session.CFID#" > > > > > > > I want to rename the file with the session id but it doesn't seem to be > > > working correctly here. I feel like I'm missing something....any advise? > > > > > > 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 --- 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
