mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-25 03:32:16 +00:00
Don't hard code max file size
This commit is contained in:
parent
d8d323b24f
commit
93e755dff3
@ -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",)
|
||||
|
@ -183,7 +183,7 @@
|
||||
chunking: true,
|
||||
forceChunking: true,
|
||||
url: '/files/upload',
|
||||
maxFilesize: 2049, // megabytes
|
||||
maxFilesize: {{max_file_size}}, // MB
|
||||
chunkSize: 1000000 // bytes
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user