To simulate the upload of the file to the server from JS?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
Hello!


My goal is to be in JS and send a POST request to the server saapadu file, the contents of which will not take disk of the user, and generated in JS.

Not sure what to do this is to use xmlhttprequest or is there something higher level?


P. S. a Specific goal — to zaplatiti via API Vkontakte image created on the canvas.
by | 4 views

1 Answer

0 like 0 dislike
Yes, XHR. Create a multipart request.
Just waiting for You underwater cobblestone: send You have binary data and not all browsers know how to send them XHR'ohms.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,858 users