From 93e755dff33bacaa4e191723dbd32d002044a340 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Wed, 22 Sep 2021 09:46:38 -0700 Subject: [PATCH] Don't hard code max file size --- src/web/settings.py | 2 +- src/web/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/settings.py b/src/web/settings.py index 41da8a2c..a80ee4b3 100644 --- a/src/web/settings.py +++ b/src/web/settings.py @@ -6,7 +6,7 @@ home_dir = getcwd() DEFAULT_CONFIG = "default.json" 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") REMOVABLE_FILE_SUFFIX = ("hdr",) ARCHIVE_FILE_SUFFIX = ("zip",) diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 9bdb4957..96afc8c3 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -183,7 +183,7 @@ chunking: true, forceChunking: true, url: '/files/upload', - maxFilesize: 2049, // megabytes + maxFilesize: {{max_file_size}}, // MB chunkSize: 1000000 // bytes }