Try #form["userfile[0]"]# on line 5 instead of what you've got.  That
should take care of the problem.

Basically, CF says form.userfile[0], is the zeroth element of an array
called 'form.userfile'.  But 'form.userfile' doesn't exist, which is
what's causing the error.  You can use struct notation (rather than
dot notation) to reference the variable, and have CF consider
'special' characters to be part of the name.  Its the same reason the
first line below will error, but the second won't, even though they're
doing the "same" thing:

<cfset request.first name = "barney" />
<cfset request["first name"] = "barney" />

cheers,
barneyb

On 11/16/05, Mik Muller <[EMAIL PROTECTED]> wrote:
> I'm having a little trouble making sense of this problem and hope
> someone can give me some insight.
>
> I'm using this upload tool called RAD Upload. It's a java app and is
> pretty slick. http://radinks.com/upload/
>
> The java app that runs as an applet calls an action page when the
> upload is done. I've got a very simple script in there that I hope to
> loop through the files uploaded.
>
> However, I'm having trouble even getting CF to recognize the files
> themselves. At the moment I'm doing a CFDUMP just to see what the app
> provides the action page, and for the life of me ... Is it possible
> that I am accessing the variables incorrectly since it's a java
> application handing me the data?
>
> Here's the CF code, just for debugging purposes to make sure I can
> access what was uploaded:
>
>          <cfdump var="#form#">
>          <p>form.USERFILE_PARENT = #form.USERFILE_PARENT#</p>
>          <p>form.USERFILE[0] = #form.USERFILE[0]#</p>
>
> and here's the output:
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224466
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to