document error on fileupload

after file uploaded, it should redirect for uploaded_file page instead
of upload page
This commit is contained in:
Yao Long 2018-04-27 15:28:38 +08:00 committed by David Lord
parent 9394c389bf
commit 9b6878af5a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -65,7 +65,7 @@ the file and redirects the user to the URL for the uploaded file::
if file and allowed_file(file.filename):
filename = secure_filename(file.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))
return '''
<!doctype html>