Skip to content

Commit

Permalink
Merge pull request #2036 from MIT-LCP/tp/data_upload_max_files
Browse files Browse the repository at this point in the history
Allow DATA_UPLOAD_MAX_NUMBER_FILES and DATA_UPLOAD_MAX_MEMORY_SIZE to be configured
  • Loading branch information
tompollard authored Jul 3, 2023
2 parents af5b4ba + 15b98f7 commit 6f3b623
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,8 @@ MIN_WORDS_RESEARCH_SUMMARY_CREDENTIALING = 20
CITI_USERNAME=
CITI_PASSWORD=
CITI_SOAP_URL="https://webservices.citiprogram.org/SOAP/CITISOAPService.asmx"

# Django configuration for file upload
# See https://docs.djangoproject.com/en/4.2/ref/settings/
DATA_UPLOAD_MAX_NUMBER_FILES=1000
DATA_UPLOAD_MAX_MEMORY_SIZE=2621440
4 changes: 4 additions & 0 deletions physionet-django/physionet/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,3 +623,7 @@ class StorageTypes:

# minimum number of word needed for research_summary field for Credentialing Model.
MIN_WORDS_RESEARCH_SUMMARY_CREDENTIALING = config('MIN_WORDS_RESEARCH_SUMMARY_CREDENTIALING', cast=int, default=20)

# Django configuration for file upload (see https://docs.djangoproject.com/en/4.2/ref/settings/)
DATA_UPLOAD_MAX_NUMBER_FILES = config('DATA_UPLOAD_MAX_NUMBER_FILES', cast=int, default=1000)
DATA_UPLOAD_MAX_MEMORY_SIZE = config('DATA_UPLOAD_MAX_MEMORY_SIZE', cast=int, default=2621440)

0 comments on commit 6f3b623

Please sign in to comment.