Something like this basically loop through your images and stuff after you
submit your form kinda like you would when you want to update multiple rows
in a database in the same time... I chopped this out of a couple of scripts
but you'll get the idea.
<!---FORM FIELDS--->
<cfform>
<cfloop index="i" from="1" to="3">
<input type="file" name="Filelimage#i#" size="20">
</cfloop>
<input type="hidden" name="updates">
</cfform>
<!---FORM ACTION PAGE--->
<cfif isdefined("updates")>
<cfloop index="i" list="#updates#">
<!--- first check to see if they want to delete this row from table --->
<cfif isdefined("Filelimage#i#") and len(evaluate("Fileimage#i#")) gt 2>
<cffile action="UPLOAD" filefield="IMAGE" destination="#TMPFolder#"
nameconflict="MAKEUNIQUE" accept="image/gif, image/jpeg, image/pjpeg,
image/png">
<cfset "FileImage#i#" = serverfile>
</cfif>
<!---Do your Image stuff here now that you've uploaded it...--->
<cfset TheImage = imageCFC.scaleX("", "#TMPFolder#\FileImage#i#",
"#ImageFolder#\FileImage#i#.jpg", 200)>
<!---Then close your loop--->
</cfloop>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251077
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4