yishayw commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605692877 This is the code that actually performs the upload ``` var binaryUploader:URLBinaryLoader = new URLBinaryLoader(); var req:URLRequest = new URLRequest(); req.contentType = contentType; req.method = "POST"; req.data = (host.model as IFileModel).blob; req.url = url; binaryUploader.addEventListener(Event.COMPLETE, completeHandler); binaryUploader.load(req); ``` 'loaded' means req.data = (host.model as IFileModel).blob is populated. There's no download, just a loading of a local file to memory. @brianraymes wants to know how we can add a parameter to a request header. I think we need to dig a bit in URLBinaryLoader to answer that.
---------------------------------------------------------------- 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
