aharui commented on issue #708: File Upload not working in Royale
URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-606081272
 
 
   What Flash sends is documented in the ASDoc for FileReference: 
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#includeExamplesSummary
   
   Just search for "Content-Type" on that page.  The FileModel variants seem to 
use Blob instead of File and I was unsuccessful using Blob.  Only when I 
switched to File did I get FormData to do the right thing.
   
   And I only tested with a zip file.  So not sure what we'll get with other 
file types.
   
   I think if there are further issues (like incorrect content-type for the 
file data), we may have to write our own version of a multi-part form-data 
generator, but I don't think we can use UploadPostHelper because of its 
licensing (currently cc-by-nc-sa)
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to