diff options
author | 2022-11-16 21:44:57 -0500 | |
---|---|---|
committer | 2022-11-16 21:44:57 -0500 | |
commit | f4a23672dce8318dd2a49a8085741e8af9110dc2 (patch) | |
tree | a6ba60c05c12327e1133b4ca64de8d4a593594f0 | |
parent | Added additional unit tests (diff) |
Lower MAX_FILE_SIZE to match discord upload limit
-rw-r--r-- | snekbox/memfs.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/snekbox/memfs.py b/snekbox/memfs.py index 9401e43..607aa86 100644 --- a/snekbox/memfs.py +++ b/snekbox/memfs.py @@ -57,9 +57,10 @@ class MemFSOptions: MEMFS_SIZE_STR = "48M" # Maximum number of files attachments will be scanned for MAX_FILES = 6 - # Maximum size of a file attachment (32 MB) - MAX_FILE_SIZE = 32 * 1024 * 1024 - # Size of /dev/shm (16 MB) + # Maximum size of a file attachment (8 MiB) + # 8 MB is also the discord bot upload limit + MAX_FILE_SIZE = 8 * 1024 * 1024 + # Size of /dev/shm (16 MiB) SHM_SIZE = 16 * 1024 * 1024 |