We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81c2a1e + c5af1be commit b6edad6Copy full SHA for b6edad6
docs/patterns/fileuploads.rst
@@ -25,7 +25,7 @@ bootstrapping code for our application::
25
from werkzeug.utils import secure_filename
26
27
UPLOAD_FOLDER = '/path/to/the/uploads'
28
- ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
+ ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'}
29
30
app = Flask(__name__)
31
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
0 commit comments