Yep, I've done that. It was multiple image uploads, the number of which is
at the user's discretion.

Here's the basic code on the action page:
<cfoutput>

<cfloop from="1" to="#looplength#" index="i">

<cffile action="upload" filefield="imagefile#i#"
destination="yourpathgoeshere\photos\" nameconflict="makeunique"
accept="image/jpeg, image/pjpeg, image/jpg, image/gif">


<!--- If the file was saved successfully, display it. --->
<cfif #file.filewassaved# IS "yes">
<h3>Image #i# was uploaded successfully.</h3>

<img src="photos/#serverfile#">


<!--- Add the images to the database. --->
<cfquery ...>
INSERT INTO coopep.dd_photo(photoname, caseid)
VALUES  ('#serverfile#', #form.newid#)
</cfquery>

</cfif>

</cfloop>
</cfoutput>


Deanna Schneider
Interactive Media Developer
[EMAIL PROTECTED]




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to