Browse Source

Merge pull request #948 from Spittie/patch-1

Update fileuploads.rst
pull/930/merge
Armin Ronacher 11 years ago
parent
commit
1f638d63ff
  1. 2
      docs/patterns/fileuploads.rst

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'])

Loading…
Cancel
Save