> I am uploading 2 files and am using the makeunique function for
> naming.
> 
> The problem I am having is when I write the name of the files to the
> db, I want to use the names given if they were made unique, so  I am
> using this:  '#File.ServerFile#'
> 
> The problem is that it's putting the same name in both fields of the
> db.  How do I specify for it to put in the name it gave each file.
> 
> Below is my insert statement and upload.
> 
> Thanks in Advance.
> 
> tcl
> 
> <cffile action="UPLOAD" formfield="resfile" filefield="resfile"
> destination="#session.respath#" nameconflict="MAKEUNIQUE">
> 
> <cffile action="UPLOAD" formfield="excfile" filefield="excfile"
> destination="#session.respath#" nameconflict="MAKEUNIQUE">
> 
> <CFQUERY>
> INSERT INTO table
>       (resFile, excfile) 
> VALUES 
>       (''#File.ServerFile#', '#File.ServerFile#')
> </CFQUERY>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to