>>I haven't tried that.... but I guess it should work... atleast theoretically
I have done this before, so yeah, it is do-able. I use this sort of technique mostly to sniff out file extensions prior to upload. I have some code sitting around somewhere if you are interested. G! On Sun, Jul 18, 2010 at 2:00 AM, Arsalan Tariq Keen <arsalk...@hotmail.com>wrote: > > You can use client side javascripting to make a hidden textfield. When user > clicks submit, set the value of the hidden field to value contained by the > filefield. > I haven't tried that.... but I guess it should work... atleast > theoretically > :D > > > Regards, > Arsalan > > -------------------------------------------------- > From: ".jonah" <jonah....@creori.com> > Sent: Sunday, July 18, 2010 7:10 AM > To: "cf-talk" <cf-talk@houseoffusion.com> > Subject: Getting uploaded file name without <CFFILE action="upload" > > > > > I need to upload files and then immediately turn around and re-upload > > them to another site using <CFHTTP ... > > > > I thought it might be nice to just use the file uploaded into the tmp > > directory but it of course doesn't have the original file name. > > > > #form.filefield# gives me the temp name of the newly uploaded file. > > > > #cffile. serverFile# gives me the name after I've run <CFFILE > > action="upload" ... > > > > Is it possible to get the clientFile name or serverFile name of the .tmp > > file without calling <CFFILE action="upload" ... ? > > > > Thanks, > > .jonah > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm