Skip to content

Commit

Permalink
Tweak file upload limits: bump max uncompressed size, round down max …
Browse files Browse the repository at this point in the history
…upload size (#22773)
  • Loading branch information
diox authored and KevinMind committed Oct 17, 2024
1 parent 191d6a0 commit e4e461b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/olympia/lib/settings_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,10 +1131,12 @@ def read_only_mode(env):
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.
Expand Down

0 comments on commit e4e461b

Please sign in to comment.