diff --git a/imgupload.py b/imgupload.py index 5998d6d..6512a4b 100644 --- a/imgupload.py +++ b/imgupload.py @@ -17,7 +17,7 @@ app = Flask(__name__) # app is the app def allowed_extension(testext): - if testext in settings.ALLOWED_EXTENSIONS: + if testext.lower() in settings.ALLOWED_EXTENSIONS: return True else: return False