Is it possible to send a file (multiparty) and parameters in one request?

2 answers 2

Of course there are no restrictions. A typical example: webmail sending pages with file attachments. When sending such a letter, the browser forms a message of the multipart / form-data type, incorporating into it both the individual parts entered by the user, the subject, the recipient's address, the actual text of the letter, and the attached files.

https://ru.wikipedia.org/wiki/Multipart/form-data

    Yes :)

    <form action="http://domain.ru" method="post" enctype="multipart/form-data"> <p><input type="text" name="text1" value="text default"> <p><input type="text" name="text2" value="12345"> <p><input type="file" name="file1"> <p><input type="file" name="file2"> <p><input type="file" name="file3"> <p><input type="submit"> </form>