Answer the question
In order to leave comments, you need to log in
How to send image to jquery ajax handler?
There is this form:
<h1>Добавить статью</h1>
<label><p>Название</p><input class="article_title" type="text"></label>
<label><p>Текст статьи</p><textarea class="article_text"></textarea></label>
<label><p>Картинки</p><input name="userfile[]" type="file" multiple="true"></label>
<label><p>Интро</p><input name="userfile[]" type="file"></label>
Answer the question
In order to leave comments, you need to log in
for starters, wrap the fields in a form tag, although this is not necessary, but it is more convenient to work with data.
Next, google "upload ajax files"/"send files ajax" .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question