File uploads with header and body data

1 view
Skip to first unread message

johan pretorius

unread,
Nov 21, 2008, 7:09:17 AM11/21/08
to as3httpclient
Hi there,

I need to upload images with as3httpclient (from within a Flex
application) - I presume multipart is the way to go?

Using the standard "upload" method (part of FileReference) would have
been better, if one can change/add header and body parameters (some
XML data needs to be sent with the upload).

Any help or ideas would be appreciated.

thanks,

Johan

EECOLOR

unread,
Nov 21, 2008, 10:29:26 AM11/21/08
to as3htt...@googlegroups.com
I think you should be able to send post body data with the default FileReference upload method.
If you (in the end) still need as3httpclient, you can simply use the SocketHTTPFileRequest class. Note however that the as3httpclient works over a socket, so the same socket security implications apply.
Greetz Erik
Reply all
Reply to author
Forward
0 new messages