Tweak file upload limits: bump max uncompressed size, round down max upload size (#22773)

This commit is contained in:
Mathieu Pillard 2024-10-16 17:59:47 +02:00 коммит произвёл GitHub
Родитель e3ba2cd0b0
Коммит ed750ffd35
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -1131,10 +1131,12 @@ MAX_IMAGE_UPLOAD_SIZE = 4 * 1024 * 1024
MAX_ICON_UPLOAD_SIZE = MAX_IMAGE_UPLOAD_SIZE
MAX_PHOTO_UPLOAD_SIZE = MAX_IMAGE_UPLOAD_SIZE
MAX_STATICTHEME_SIZE = 7 * 1024 * 1024
MAX_ZIP_UNCOMPRESSED_SIZE = 200 * 1024 * 1024
MAX_ZIP_UNCOMPRESSED_SIZE = 250 * 1024 * 1024
# Not a Django setting -- needs to be implemented by relevant forms
# See: validate_review_attachment()
MAX_UPLOAD_SIZE = 200 * 1024 * 1024
# See SourceForm, _submit_upload(), validate_review_attachment(), etc. Since it
# is displayed to users with filesizeformat it should be using powers of 1000
# to be displayed correctly.
MAX_UPLOAD_SIZE = 200 * 1000 * 1000
# File uploads should have -rw-r--r-- permissions in order to be served by
# nginx later one. The 0o prefix is intentional, this is an octal value.