Re: Dynamic Renaming of uploaded file

2009-04-14 Thread Fawzi Amadu
This is to both Jason and Azad. Can I use a self generated ID for renaming the files instead of the function createuuid? TIA You don't want to use the '' inside the CFFILE tag. Try this, assuming #dest# is a variable holding a full file folder path ending with '\': cfif structKeyExists(form,

Re: Dynamic Renaming of uploaded file

2009-04-14 Thread Jason Fisher
Absolutely. cfset myCustomVar = whateverABC1299X / ... cffile ... destination=#dest##myCustomVar#.#cffile.serverFileExt# / ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Fawzi Amadu
Thanks for the code, I used your code this way: cfif isdefined(form.upload) cfloop index=i from=1 to=#Session.numberoffields# step=1 cfset filename = #Session.ExtraProductImgName# #i# !--- cfif evaluate(variables.filename) neq --- cffile

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Jason Fisher
You don't want to use the '' inside the CFFILE tag. Try this, assuming #dest# is a variable holding a full file folder path ending with '\': cfif structKeyExists(form, upload) cfloop index=i from=1 to=#Session.numberoffields# step=1 cfset variables.filename =

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Azadi Saryev
You don't want to use the '' inside the CFFILE tag why not? has always worked fine for me... Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Jason Fisher wrote: You don't want to use the '' inside the CFFILE tag. Try this, assuming #dest# is a variable holding a full file folder

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Azadi Saryev
provided your files are getting uploaded, they should get renamed using that code just fine... do your files actually get uploaded? (you have a missing # after #dest in your code, but i assume that is just a typo...) do you get any cf errors? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Fawzi Amadu
Interestingly, I have tested it a couple of times now and they aren't being renamed provided your files are getting uploaded, they should get renamed using that code just fine... do your files actually get uploaded? (you have a missing # after #dest in your code, but i assume that is just a

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Fawzi Amadu
Interestingly, the typo existed in my code but caused no error - the files were uploaded albeit, without being renamed. I am lost, since you see no real problem with my code and yet the renaming is not being done. provided your files are getting uploaded, they should get renamed using that

Re: Dynamic Renaming of uploaded file

2009-04-07 Thread Gerald Guido
Here, try this. http://www.myinternetisbroken.com/files/FileUpload.cfc.zip If you want to use out side of the cfc just replace the arguments.var's with the values you want to use. HTH G! On Tue, Apr 7, 2009 at 11:33 AM, Fawzi Amadu abd...@gmail.com wrote: Interestingly, the typo existed

Re: Dynamic Renaming of uploaded file

2009-04-03 Thread Azadi Saryev
cfset dest = /path/to/some/directory/!--- note: only path - NO filename - and trailing / ! --- cffile action=upload destination=#dest# filefield=... nameconflict=makeunique cffile action=rename source=#dest cffile.serverfile# destination=#dest createuuid()#.#cffile.serverFileExt# Azadi Saryev