forked from orbit-oss/flask
Fixed some documentation issues. This fixes #41.
This commit is contained in:
parent
e52f073e3e
commit
854e0e26d1
3 changed files with 9 additions and 3 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue