Browse Source

Merge pull request #2596 from Nickatak/master

Fix for docs issue #2595
pull/2600/merge
David Lord 7 years ago committed by GitHub
parent
commit
22708b048d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/patterns/fileuploads.rst

2
docs/patterns/fileuploads.rst

@ -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('uploaded_file',
return redirect(url_for('upload_file',
filename=filename))
return '''
<!doctype html>

Loading…
Cancel
Save