

It’s so nice that we can do file upload, thanks the new Flash. But can it goes further. I’ve got this complain from our Flex developer:
The problem with the Flex file upload using FileReference is that it does not provide support for sending SOAP attachments.
- Headers cannot be added (therefore we cannot specify SOAPAction)
- Content-Type is fixed as multipart/Form-Data which may not work with our webservice
- It doesn’t allow you to arrange/ specify in what order the multiparts appear in, or if you want the generated blocks to appear at all
- Doesn’t seem to pick up the entire file as binary output when monitoring the outgoing request using TCP/IP monitor.
If you back down to using HTTPService
- FileReference does not allow you to retrieve the entire path name, only the filename
- This means you cannot load the file you selected into any Loader classes
- Even after manually specifying a local path to get around the FileReference limitation, Flex doesn’t seem to write the entire file as binary output to the POST, only the first few chars
Obviously we are using Flex to build tools around our SOA based systems and we want to go further.
If you would like to make a comment, please fill out the form below.
| Cox special offers ||| Verizon High Speed Internet ||| Comcast cable deals |
Just as a side note/reference, FileReference also has no way of handling the response on file upload. For example you might want the file name on the server, an ID or something in response to your file upload, for which there\’s no handler in Flash.
actually there is one handle for that
http://stacyyoung.org/2007/05/25/receiving-data-in-response-to-file-upload-in-flex/
Hi
How can I get the full file path which i am going to upload in flex..
Hi can you please provide me a example on file uploading from flex to Webservice. Please
please
Thanks in advance