diff --git a/app/utils.py b/app/utils.py index 034c39cd..fd363926 100644 --- a/app/utils.py +++ b/app/utils.py @@ -50,7 +50,7 @@ def doFileUpload(file, fileType, fileTypeDesc): if fileType == "image": allowedExtensions = ["jpg", "jpeg", "png"] isImage = True - elif filetype == "zip": + elif fileType == "zip": allowedExtensions = ["zip"] else: raise Exception("Invalid fileType")