Upload files with other input in the same form #248
Unanswered
paroxyste-0
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The correct thing to do here is to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your reply and the information. Do you think you can implement it during the rest of the year? Sincerely |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to send a form with input text, select and textarea at the same time as 2 input files.
I have increased the size of Request to avoid error 413.
My problem is that if I put application/x-www-form-urlencoded I receive the information from my inputs and I have the name of the uploaded images, but I can't retrieve their content with request.form.
If I use application/octet-stream I get the same information as before with request.form or await request.stream.read()
If I use multipart/form-data form and body are empty and using await request.stram.read() takes an infinitely long time to get any response.
What should I do? On flask, you can use request.files, but on microdot, the examples indicate that you should use stream, but I don't understand how to retrieve the contents of my images in addition to my form.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions