Attempt to fix large file uploads

This commit is contained in:
2025-08-20 11:07:55 +01:00
parent 988f40eab0
commit 5dfe3d77db
3 changed files with 21 additions and 4 deletions

View File

@@ -199,9 +199,17 @@ INSTANCE_THEME_FILE = "./less/theme.less"
# Invenio-Files-Rest
# ==================
FILES_REST_STORAGE_FACTORY = "invenio_s3.s3fs_storage_factory"
FILES_REST_MAX_CONTENT_LENGTH = 50 * 1024 * 1024 * 1024 # 50GB
FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024 * 1024 # 5MB minimum
FILES_REST_MULTIPART_MAX_PARTS = 10000 # Allow more parts for large files
FILES_REST_MAX_CONTENT_LENGTH = 1024**4 # 1TB
FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024**2 # 5MB minimum
FILES_REST_MULTIPART_MAX_PARTS = 250 # Allow more parts for large files
RDM_FILES_DEFAULT_MAX_FILE_SIZE = 1024**4 # 1TB
RDM_FILES_DEFAULT_QUOTA_SIZE = 1024**4 # 1TB
FILES_REST_DEFAULT_MAX_FILE_SIZE = 1024**4 # 1TB
FILES_REST_DEFAULT_QUOTA_SIZE = 1024**4 # 1TB
APP_RDM_DEPOSIT_FORM_QUOTA = {
"maxFiles": 250,
"maxStorage": 1024**4, # 1TB
}
# Invenio-S3
# ==========