From 077bdeb01c5725344d871705f2bd97df4ff96bef Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 18 Jan 2020 01:38:00 +0000 Subject: Add reloading support to Docker container --- app/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/utils.py') diff --git a/app/utils.py b/app/utils.py index 5d1c8da..983111c 100644 --- a/app/utils.py +++ b/app/utils.py @@ -46,13 +46,13 @@ def randomString(n): return ''.join(random.choice(string.ascii_lowercase + \ string.ascii_uppercase + string.digits) for _ in range(n)) -assert(os.path.isdir(app.config["UPLOAD_DIR"]), "UPLOAD_DIR must exist") - def doFileUpload(file, fileType, fileTypeDesc): if not file or file is None or file.filename == "": flash("No selected file", "error") return None + assert os.path.isdir(app.config["UPLOAD_DIR"]), "UPLOAD_DIR must exist" + allowedExtensions = [] isImage = False if fileType == "image": -- cgit v1.2.3