[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-626355351 load() did not work at all. I think I got it to work. I'm not sure which buttons to hit. I searched their code for FileReference. I think you hit the Edit button with the pencil icon, then a new dialog pops up, you hit the Attachment button on the right side and that pops up a dialog. Their code does not upload directly, it will upload via RemoteObject which is why they want a ByteArray off FileReference.data and use load(). 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: us...@infra.apache.org
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-626283771 Pashmina's app is using load(), not upload(). 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: us...@infra.apache.org
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-608222770 We want to know what your existing code looks like so we can see if we can emulate the APIs you are using. If you can put together a small test case or provide snippets of your existing code we can try to improve the emulation. And if you want to learn how to submit PRs to help implement these APIs, even better. 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605786973 I made a change to mx.net.FileReference to use FormData. This code worked for me with the upload service I was testing. I've overridden the FileUploader to do this. If this turns out to be the right approach then it could use some refactoring because the FormData uses the File and not the Blob/ArrayBuffer (it didn't work correctly using Blob/ArrayBuffer). This area is definitely not my area of expertise, so I could certainly have not done something correctly. AFAICT, the upload service I tested expects more than just the blob, it seems to require two parts (Filename and Filedata (with correct encoding)) and a boundary. FormData seems to generate the boundary and all of the pieces for us. See aa7a65cb622977d3da4ec6a00f8cbaf8f7f284dc for the FileUploaderUsingFormData override. 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605785454 @yishayw I could not find UploadPostHelper in our code, only on the internet, and it looked like it wasn't ALv2 compatible. 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605690105 I'm not that familiar with how uploading is supposed to work, but I thought an upload was just a POST with the data to some URL. Are you saying something has to be downloaded before an upload is allowed? How can, for example, someone write an app that allows uploading new photos? 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-605600444 @yishayw Can you explain how the code is supposed to work? I built the example and tested against an upload server and got a 400. FileReference.upload seems to be using FileLoaderAndUploader but there isn't a file to load in my case, if I understand the code correctly. How is FileReference supposed to know whether to use FileLoaderAndUploader or just FileUploader? 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-585851316 @yishayw Do you have time to migrate the ASDoc example and get it to run? https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#includeExamplesSummary That might be a good test for anyone else needing to use/test the emulation. 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: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #708: File Upload not working in Royale
aharui commented on issue #708: File Upload not working in Royale URL: https://github.com/apache/royale-asjs/issues/708#issuecomment-584496619 @yishayw Do you have time to emulate FileReference on top of the FileUpload code? You may be more familiar with this functionality than I am. 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: us...@infra.apache.org With regards, Apache Git Services