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


With regards,
Apache Git Services

Reply via email to