It's actually very simple to accomplish. CFFile looks for the name of the
form field, so you have to make sure to match these up. In general, the way
you do it is to set up a global variable with the number of the form fields
that you want. Then you dynamically name and reference the upload form
fields with a numbered suffix, and use CFLoop to handle them all. I've found
that sometimes the form fields exist even if there is no file, so you should
verify both that a given form field exists as well as it has length GT 0
before you run CFFile on it.
Matt
> -----Original Message-----
> From: Kevin Willyerd [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 4:37 PM
> To: CF-Talk
> Subject: Multiple file uploads
>
>
> Is it possible to upload 5 different files from the same form? The
> only way I can get it to work is to use a seperate template for each
> file.
>
> Kevin
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists