sanjeev-rajput commented on issue #1251:
URL: https://github.com/apache/royale-asjs/issues/1251#issuecomment-2570157808
Hi,
Using URLSearchParams class works fine as long as we are sending some
text/string information. This also can be achieved by simple adding as
queryString (?) param to the url without utilizing this class.
However, the nature of URLSearchParams class may not be an appropriate
option while sending some blob/ file object. I tried this and doesn't work. And
yes, I am trying to send file object (.zip/ images/ .jar) to server using
nodeJs api.
in simple JS using fetch api things work fine. Also made some progress in
apache royale with below code
var x:XMLHttpRequest = new XMLHttpRequest();
x.open('POST', 'http://localhost:3001/FileUpload/upload', true);
x.send(fd)
But, would be great if we can achieve it using a single 'HTTPService'
approach. I have been using it for a long time for loading the data which works
great but first time for sending the blob data.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]