You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/03/29 20:31:46 UTC

[GitHub] [royale-asjs] yishayw edited a comment on issue #708: File Upload not working in Royale

yishayw edited a comment on issue #708: File Upload not working in Royale
URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605696362
 
 
   @brianraymes , I took a look, and it looks like you can swap
   
   ```
   var header:URLRequestHeader = new URLRequestHeader("Content-type", "multipart/form-data; boundary=" + UploadPostHelper.getBoundary());
   uploadURL.requestHeaders.push(header);
   ```
   with
   
   `(fileReference.getBeadByType(FileUploader) as FileUploader).contentType = "multipart/form-data; boundary=" + UploadPostHelper.getBoundary()`
   
   If you or Alex don't mind testing it with your setup that would be great. I haven't thought about what it would mean to emulate Flex syntax.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services