diff options
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
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": |