Cannot control field order with multipart form data #2655
Unanswered
dsinghvi
asked this question in
Potential Issue
Replies: 1 comment
-
Did you ever figure out a workaround for this? I'm trying to do the same thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When sending a multipart file upload, it looks like httpx sends all the data fields before sending the files.
httpx/httpx/_multipart.py
Lines 211 to 223 in daec2bd
Since order is important when decoding on the server-side, how would you make the request if you wanted to send some data fields, then a file, and then some more data fields?
In aiohttp, the user gets more granular control when building up a multipart file upload request:
Beta Was this translation helpful? Give feedback.
All reactions