Permalink
Browse files

Update fileuploads.rst

secure_filename is under werkzeug.utils (http://werkzeug.pocoo.org/docs/utils/)
  • Loading branch information...
1 parent b2971ec commit de3dbd3125263f93a1b900f65091f6f0163544b2 @Spittie committed Jan 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'])

0 comments on commit de3dbd3

Please sign in to comment.