Browse Source

Merge pull request #1956 from shakib609/master

Update allowed_file function in fileuploads.rst
pull/1960/head
Armin Ronacher 9 years ago committed by GitHub
parent
commit
80b9453bdd
  1. 2
      docs/patterns/fileuploads.rst

2
docs/patterns/fileuploads.rst

@ -47,7 +47,7 @@ the file and redirects the user to the URL for the uploaded file::
def allowed_file(filename):
return '.' in filename and \
filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
@app.route('/', methods=['GET', 'POST'])
def upload_file():

Loading…
Cancel
Save