From 57bbcbd639c06202fe70d493aa0c6d69a5724d72 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 20 Sep 2021 15:22:48 -0700 Subject: [PATCH] Address issue#61 by allowing only recognized file types to be picked for upload --- src/web/templates/index.html | 4 ++-- src/web/web.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 20479e12..29f9bca1 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -167,13 +167,13 @@

Upload File

-

Uploads file to {{base_dir}}. Max file size is set to {{max_file_size / 1024 /1024 }}MB

+

Uploads file to {{base_dir}}. The largest file size accepted is {{max_file_size / 1024 /1024}} MB

diff --git a/src/web/web.py b/src/web/web.py index d0173f87..50f50231 100644 --- a/src/web/web.py +++ b/src/web/web.py @@ -73,7 +73,7 @@ def index(): running_env=running_env(), server_info=server_info, netinfo=get_network_info(), - valid_file_suffix=", ".join(VALID_FILE_SUFFIX), + valid_file_suffix="."+", .".join(VALID_FILE_SUFFIX), removable_device_types=REMOVABLE_DEVICE_TYPES, harddrive_file_suffix=HARDDRIVE_FILE_SUFFIX, cdrom_file_suffix=CDROM_FILE_SUFFIX,
- +