Don't hard code max file size

This commit is contained in:
Daniel Markstedt 2021-09-22 09:46:38 -07:00
parent d8d323b24f
commit 93e755dff3
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ home_dir = getcwd()
DEFAULT_CONFIG = "default.json" DEFAULT_CONFIG = "default.json"
MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", 1024 * 1024 * 1024 * 2) # 2gb MAX_FILE_SIZE = getenv("MAX_FILE_SIZE", 1024 * 1024 * 1024 * 2) # 2gb
HARDDRIVE_FILE_SUFFIX = ("hda", "hdn", "hdi", "nhd", "hdf", "hds") HARDDRIVE_FILE_SUFFIX = ("hda", "hdn", "hdi", "nhd", "hdf", "hds", "dsk")
CDROM_FILE_SUFFIX = ("iso", "cdr", "toast", "img") CDROM_FILE_SUFFIX = ("iso", "cdr", "toast", "img")
REMOVABLE_FILE_SUFFIX = ("hdr",) REMOVABLE_FILE_SUFFIX = ("hdr",)
ARCHIVE_FILE_SUFFIX = ("zip",) ARCHIVE_FILE_SUFFIX = ("zip",)

View File

@ -183,7 +183,7 @@
chunking: true, chunking: true,
forceChunking: true, forceChunking: true,
url: '/files/upload', url: '/files/upload',
maxFilesize: 2049, // megabytes maxFilesize: {{max_file_size}}, // MB
chunkSize: 1000000 // bytes chunkSize: 1000000 // bytes
} }
</script> </script>