aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2022-11-16 21:44:57 -0500
committerGravatar Ionite <[email protected]>2022-11-16 21:44:57 -0500
commitf4a23672dce8318dd2a49a8085741e8af9110dc2 (patch)
treea6ba60c05c12327e1133b4ca64de8d4a593594f0
parentAdded additional unit tests (diff)
Lower MAX_FILE_SIZE to match discord upload limit
-rw-r--r--snekbox/memfs.py7
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