-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass array to form data (multipart/form-data) #903
Labels
Comments
Yes, field names and values are intended to be a text. |
lukasz-madon
added a commit
to rolepoint/aiohttp
that referenced
this issue
Jun 6, 2016
RFC stanard requires all fields to be US-ASCII. Additional `quote` may provide extra security (RFC-1806 p. 2.3), but does not allow for interoperability with API that requires ASCII characters outside `quote` set e.g. emails[] becomes emails%5B%5D fixes aio-libs#903
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I need to call API using
multipart/form-data
with list of strings and list of objectsIf I'm not mistaken FormData is designed to support urlencoded params or bytes for files only. Passing anything other than bytes results in
ClientRequestError: Can not write request body
. Is there a better way that passing everything as files?What is more the
results in
emails%5B%5D
and form data doesn't allow bytes as namesThe text was updated successfully, but these errors were encountered: