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/06 18:28:47 UTC

[GitHub] [royale-asjs] brianraymes commented on issue #708: File Upload not working in Royale

brianraymes commented on issue #708: File Upload not working in Royale
URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-595899570
 
 
   @yishayw I'm currently testing File Upload capabilities as well, and while I can browse, and supposedly send content to my java server, I see the following error when using Apache Commons FileUpload:
   
   > The request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
   
   In Royale, I've tried augmenting the mxroyale FileReference example by adding the following:
   
   ```
   var header:URLRequestHeader = new URLRequestHeader("Content-type", "multipart/form-data");
   uploadURL.method = "POST";
   uploadURL.requestHeaders.push(header);
   ```
   
   This seems to have no affect what-so-ever. The content, while arriving to my java server, still contains no Content-Type.
   
   Also, in Royale, how do we access the file data from a FileReference? It always seems to be null. I have other cases where I send byte arrays over RemoteObject calls, but can't seem to access the byte data after browsing for a file.

----------------------------------------------------------------
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