Claude Raiola wrote:


I am trying to upload several images at ones within the same form page however I am not sure how to capture the different file names being uploaded as I am using which results in the same image being upload instead of the two separate images #FILE.ServerFile# in the update query eg:

<cfloop list="#form.id#" index="z">

<CFQUERY NAME="UPDATE_image" datasource="#ds#" username="#un#" password="#pw#">
UPDATE table
SET property_image_#z# = '#FILE.ServerFile#'
where id=#form.id#
</CFQUERY>


</cfloop>

your assistance and advice would be appreciated


Kind Regards


Hi Claude,

You have to execute a seperate <cffile action="upload"> for each file in the form. And I'm not sure if you can give 'files' the same name and treat them as a list like other form variables...

I'd name them all uniquely within the form then in the loop do a <cffile ..> for each one just prior to your <cfquery ...>.

Does that make sense? If not, let me know and I'll post a code snippet from an image gallery form I use.

Regards,

Brett
B)

--
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to