mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-26 13:49:21 +00:00
Don't hard code max file size
This commit is contained in:
parent
5ebbe8f107
commit
bae1554b1f
@ -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",)
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user