Replies: 2 comments 2 replies
-
We pretty much suggest that all new functionality from this point ought to be in third party packages. |
Beta Was this translation helpful? Give feedback.
-
This request is primarily targeted at allowing file upload when using When active, the Base64Serializer should be exposed as string for OpenAPI but treated like a FileSerializer internally wrt the models. I imagine we could extend the option with something like the following, FileField(max_length=None, allow_empty_file=False, use_url=UPLOADED_FILES_USE_URL, use_base64=True)
FileField(max_length=None, allow_empty_file=False, use_url=UPLOADED_FILES_USE_URL, encoding="base64") |
Beta Was this translation helpful? Give feedback.
-
Given then that DRF is THE standard to use when creating REST APIs with Django, I've surprised that base64 support for file types has been pushed to third party libraries. Given that REST APIs almost always use base64 for files nowadays, would you be interested in adding an
encoding='base64'
as an option to the Image and FileSerializers?Beta Was this translation helpful? Give feedback.
All reactions