Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
FileUploadParser doesn't offer a file picker in the browsable API.#9646
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Problem: The browsable API doesn't interact well with the FileUploadParser. The view in question.
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Adding a serializer includes the file picker which solves for my use case; this might just be a documentation issue. The documentation does not mention the required serializer anywhere.
|
BetaWas this translation helpful?Give feedback.
All reactions
-
That documentation page focuses purely on file uploads, especially the We could however add a note at the end of the section to make this limitation clearer and point towards the solution (serializer with a FileField). Another potential page that may be suitable is the one about thebrowsable API, we could add a section that it infers form fields types from serializers and might be wrong if you don't use a serializer of if the serializer resolution is too dynamic... PS: what was your original |
BetaWas this translation helpful?Give feedback.