Created
March 22, 2018 05:17
-
-
Save viveksb007/9048233894d333741f70616a21361b98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALLOWED_EXTENSIONS = {'pdf'} | |
def allowed_file(filename): | |
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment