FileReferenceList doesn't have the ability to upload.  That is in the FileReference class.  All FileReferenceList allows you to do is browse and select multiple files at once.  When you're ready to upload you need to loop through the FileReference objects and call upload on each one.  Each will be sent to the server in separate multi-part HTTP POST requests.
 
If you need to group these files on the server then I suggest you generate a GUID for each group and pass that along with each file.  Then on the server you can group them together based on that GUID.  You may even want to send the number of files in the group along with each upload so you know when all have been uploaded.  Or you could fire off a separate request to trigger the grouping on the server.
 
HTH,
DP
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of randomt2000
Sent: Friday, October 13, 2006 10:09 AM
To: [email protected]
Subject: [flexcoders] Re: FileReferenceList to a servlet

--- In [EMAIL PROTECTED]ups.com, "randomt2000" <randomt2000@...>
wrote:
>
> Is there anyone out there who has had luck sending multiple
> attachments, all-at-once, to a Servlet using FileReferenceList ?
>
> I am trying to create an email like functionality where a user can
> browse to multiple files and send them as attachments. The best I
have
> come up with is keeping multiple files in an form field array,
added
> one at a time by a FileRefence.browse(). On the servlet side, they
end
> up as a byte[].
>
> I would rather use the FileReferenceList to allow multiple
selections
> at once. But the FileReferenceList is an array of FileReference
> objects, and each one needs to have 'upload' called on it
seperately.
> Has anyone found away to do this in Flash 9 / Actionscript 3.0 ?
>
> Thanks - Mike
>
Any takers ?

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to