aharui commented on issue #708: File Upload not working in Royale
URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605786973
 
 
   I made a change to mx.net.FileReference to use FormData.  This code worked 
for me with the upload service I was testing.
   
   I've overridden the FileUploader to do this.  If this turns out to be the 
right approach then it could use some refactoring because the FormData uses the 
File and not the Blob/ArrayBuffer (it didn't work correctly using 
Blob/ArrayBuffer).
   
   This area is definitely not my area of expertise, so I could certainly have 
not done something correctly.  AFAICT, the upload service I tested expects more 
than just the blob, it seems to require two parts (Filename and Filedata (with 
correct encoding)) and a boundary.  FormData seems to generate the boundary and 
all of the pieces for us.
   
   See aa7a65cb622977d3da4ec6a00f8cbaf8f7f284dc for the 
FileUploaderUsingFormData override.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to