If you have 4 file fields in the form that's submitted you'll have those 4
form fields on the action page. Try something like...

<cfloop from="1" to="4" index="i">
        <cfif Trim(FORM["myFileFieldName_" & i]) NEQ "">
                <cftry>
                        <!--- Process form here --->
                        <cfcatch type="any">
                                <!--- Even though the field had something in, 
it wasn't a file --->
                        </cfcatch>
                </cftry>
        </cfif>
</cfloop>

Adrian

-----Original Message-----
From: Jason Hunter
Sent: 20 October 2007 08:42
To: CF-Newbie
Subject: RE: Multiple File Upload


I have tried that but I will try again. I guess the times I have used
isdefined it doesn't work the way I want it to. Because the way I understand
it, if I send the variable, althought it might be null, does it still exist?
It just doesn't have a value right?

-----Original Message-----
From: Leonard Boche
Sent: Saturday, October 20, 2007 1:29 AM
To: CF-Newbie
Subject: Re: Multiple File Upload

Hi Jason,

If I understand what it is you are trying to do, try using an IsDefined in
the process to determine if the form field is empty or not.

Just a thought is all.

Leonard


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3107
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to