Thank you.  I'm not as familiar w/ file.clientFile as I should be.  It may
not even be what I need in this situation....

First form:
<cfloop index="x" from="1" to="3">
<tr><td valign="top">
<cfif x is 1>
<b>Large Image:</b>
<cfelseif x is 2>
<b>Thumbnail Image:</b>
<cfelseif x is 3>
<b>Printable Version:</b>
</cfif>
</td>
<td><input type="File" name="file_#x#" size="25"></td>
</tr>
</cfloop>

Then, in the receiving form...
I understand how to loop thru and upload each file; but, I then need to save
the name of each file in a single record to be read later.

So, I have file_1, file_2, file_3.  How do I get the actual file name of
each one? (ex:myPicture.gif)

Thank you!!!


> -----Original Message-----
> From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 12:26 PM
> To: CF-Talk
> Subject: RE: uploading multiple files
>
>
> i do this a lot.
>
> in your form, CFLOOP to create each upload form element. use the
> INDEX value
> as part of each form element name.
>
> then, in the code that handles the form, CFLOOP over the name of each form
> element using Evaluate() to get the actual value of each var name.
>
>
> -----Original Message-----
> From: Susan Matthews [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 9:04 AM
> To: CF-Talk
> Subject: uploading multiple files
>
>
> Hi all--
>
> I have a form that uses multiple <cffile action=upload> to upload multiple
> files(images and PDFs).
>
> In the past, when using <cffile> I have used 'file.clientFile' to save the
> file name so that I can read the correct file later from a known
> directory.
>
> If I am uploading multiple files on one form, how do I know which
> name goes
> with which file?
>
> thanks in advance for any help :)
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to