Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update fileuploads.rst

secure_filename is under werkzeug.utils (http://werkzeug.pocoo.org/docs/utils/)
  • Loading branch information...
commit de3dbd3125263f93a1b900f65091f6f0163544b2 1 parent b2971ec
@Spittie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/patterns/fileuploads.rst
View
2  docs/patterns/fileuploads.rst
@@ -22,7 +22,7 @@ bootstrapping code for our application::
import os
from flask import Flask, request, redirect, url_for
- from werkzeug import secure_filename
+ from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/path/to/the/uploads'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
Please sign in to comment.
Something went wrong with that request. Please try again.