-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Multi-level dictionaries not supported in multipart requests #3314
Labels
Milestone
Comments
Looks like a valid issue on first pass. |
Out of interest what's the use case here, are these HTML forms that you're including on a web site, or is this a client that just happens to be using simulated multipart nesting? |
I have the file upload on 3rd level so i have to use multipart. |
This was referenced Mar 9, 2017
This was referenced Oct 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rest_framework.utils.html.is_html_input()
combined withrest_framework.utils.html.parse_html_dict()
does not detect 3+ level dictionaries, for example.{'a':{'b':{'c':123}}}
isQueryDict([('a.b.c',123)])
, sois_html_input()
properly detects nested dictionary.{'b.c':123}
andis_html_input()
does not detect the nested dictionary.My suggestion is to either instantiate or return
MultiValueDict
instead of simpledict
inparse_html_dict()
(and possiblyparse_html_list()
)https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/utils/html.py
The text was updated successfully, but these errors were encountered: