This is an automated email from the ASF dual-hosted git repository.

lahirujayathilake pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c240ca6 Increase Django max file upload size
0c240ca6 is described below

commit 0c240ca64cf9b4a60dab50190cb0b05a1b4b888d
Author: lahiruj <[email protected]>
AuthorDate: Mon Jan 27 14:39:27 2025 -0500

    Increase Django max file upload size
---
 django_airavata/settings.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/django_airavata/settings.py b/django_airavata/settings.py
index a2cf382a..df495996 100644
--- a/django_airavata/settings.py
+++ b/django_airavata/settings.py
@@ -195,6 +195,10 @@ FILE_UPLOAD_HANDLERS = [
     'django_airavata.uploadhandler.MaxFileSizeTemporaryFileUploadHandler',
 ]
 
+# Django max file size
+DATA_UPLOAD_MAX_MEMORY_SIZE =  64 * 1024 * 1024  # 64 MB
+FILE_UPLOAD_MAX_MEMORY_SIZE =  64 * 1024 * 1024  # 64 MB
+
 # Tus upload
 # Override and set to a valid tus endpoint, for example
 # "http://localhost:1080/files/";

Reply via email to