mirror of https://github.com/pallets/flask.git
Merge pull request #2727 from red-alert/master
error on file upload document
This commit is contained in:
commit
5239458f28
|
|
@ -65,7 +65,7 @@ the file and redirects the user to the URL for the uploaded file::
|
||||||
if file and allowed_file(file.filename):
|
if file and allowed_file(file.filename):
|
||||||
filename = secure_filename(file.filename)
|
filename = secure_filename(file.filename)
|
||||||
file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
|
file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
|
||||||
return redirect(url_for('upload_file',
|
return redirect(url_for('uploaded_file',
|
||||||
filename=filename))
|
filename=filename))
|
||||||
return '''
|
return '''
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue