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,
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
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
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 =
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
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/
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
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
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
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
10 matches
Mail list logo