Answer the question
In order to leave comments, you need to log in
How to send an image via ajax in pure js?
Good day, let's say there is a picture:
You need to send this picture to the django server using pure js via ajax
. I know how to send data, I can also create a form:
But I don’t understand how to add an image to this form
. ?
<img src="src">
form = new FormData();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question