Subscribe

  • Subscribe  

Flex File Upload Might Need Go Further

Posted by Charles | September 7, 2006 .

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.

  1. Headers cannot be added (therefore we cannot specify SOAPAction)
  2. Content-Type is fixed as multipart/Form-Data which may not work with our webservice
  3. 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
  4. 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

  1. FileReference does not allow you to retrieve the entire path name, only the filename
  2. This means you cannot load the file you selected into any Loader classes
  3. 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.

Leave a Comment

If you would like to make a comment, please fill out the form below.


Name

Email

Website

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comments

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Related Posts

4 Comments so far
  1. Kevin Hoyt  September 7, 2006 7:43 pm

    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.

  2. optimusflex  December 4, 2007 2:14 pm
  3. Sandeep  December 5, 2007 11:37 am

    Hi

    How can I get the full file path which i am going to upload in flex..

  4. uday  September 8, 2008 3:39 am

    Hi can you please provide me a example on file uploading from flex to Webservice. Please

    please

    Thanks in advance

<

Direct TV Offers - usdirect has the best directtv deals