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:
parent
af3267ac5a
commit
1bd38ad4c7
13 changed files with 470 additions and 130 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue