refactor: image upload modals, file size limit added to config (#2868)

* chore: add file size limit as config in the config api

* refactor: image upload modals

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Nikhil 2023-11-24 13:23:46 +05:30 committed by sriram veeraghanta
parent af3267ac5a
commit 1bd38ad4c7
13 changed files with 470 additions and 130 deletions

View file

@ -102,4 +102,6 @@ class ConfigurationEndpoint(BaseAPIView):
)
)
data["file_size_limit"] = float(os.environ.get("FILE_SIZE_LIMIT", 5242880))
return Response(data, status=status.HTTP_200_OK)