After each file upload set the filename variable to a regular variable, then
at the end insert both variables into the database.
<cffile upload blah blah>
<cfset Filename1 = #FILE.Serverfile#>
<cffile upload more blah>
<cfset Filename2 = #FILE.Serverfile#>
<cfinsert datasource="blah" formfields="#Filename1#, #Filename2#">
Obviously the above is not valid code, but I hope you get what I mean.
On a related issue, I have a template where users upload up to 25 files at
once. Is there a way to handle 25 files without 25 <cffile>'s? I know there
has to be...
Jon
Florida Inspection Associates
----- Original Message -----
From: "Arend Roos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 11:35 AM
Subject: CFFILE
> Hi,
>
> I'm uploading two files using <CFFILE>. I have to write the filenames in a
> database. How can I mention the different Clientfile-variables?
>
> Arend Roos
>
> -------------------
> Diversion Internet Services (www.diversion.nl)
> tel. 0348 408031 - fax. 020 8706093 - [EMAIL PROTECTED]
> A real partner in a virtual world
>
> --------------------------------------------------------------------------
----
> 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.
>
------------------------------------------------------------------------------
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.