Is it possible to send a file (multiparty) and parameters in one request?
- Parameters of what? In the sense of data from the form or what? - Redr01d
- Yes, these forms. - dakemu
- Yes of course, why not ru.wikipedia.org/wiki/Multipart/form-data - Redr01d
|
2 answers
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.
|
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> |