Fixed some documentation issues. This fixes #41.

This commit is contained in:
Armin Ronacher 2010-05-18 18:05:05 +02:00
parent e52f073e3e
commit 854e0e26d1
3 changed files with 9 additions and 3 deletions

View file

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