I am working with a standard upload.cfm type file.
I am receiving parameters through an applet. I am able to append vars to an url and view them through testing as well so I know the applet and the upload.cfm are communicating.. Also - using the applet - I can see and upload a file...
THe problem is - I am promised from the applet an array called "userfile"
I searched variables.userfile, application.userfile, request.userfile, url.userfile, form.userfile and plain old userfile
I finally found it guessing it's reference by userfile[0]
So it does indeed seem to be part of an array - however the odd thing is it is available within this cfile tag
<cffile action=""> filefield="userfile[0]"
destination="#destination#">
But if I was to output
#userfile[0]# - it would come up as a "userfile undefined"
If I uploaded 2 files in through the applet - I can have both uploads triggered by simply adding another cffile
<cffile action=""> filefield="userfile[1]"
destination="#destination#">
THE BIG question is -
Obviously the information is there since the upload triggers. Is there some serialization or parsing I need to do before I can refer to the userfile array?
Even just checking to see it's lenght with ArrayLen(userfile) turns up empty - BUT again - the cffile does indeed upload the proper file.
You can see where I am testing it here
http://qc.viaetc.com/secure/test.cfm
Keep in mind I am only allowing the following
(image/jpg, image/pjpeg, image/jpeg, image/gif, application/pdf)
The browse upload AND applet upload do work - I just know need to extract the information hidden in the array so I can
a) Rename the file with unique stamp
b) Write the name of the file into a database for future association
Thanks for everyones help. I feel I am very close!
Jason
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

