Skip to content
Myr

Update fileuploads.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

secure_filename is under werkzeug.utils (http://werkzeug.pocoo.org/docs/utils/)

authored by Spittie · committed by Spittie · parent b2971ec · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/patterns/fileuploads.rst+1 added-1 removed
20 unmodified lines
21bootstrapping code for our application::2223 import os24 from flask import Flask, request, redirect, url_for25 from werkzeug import secure_filename25 from werkzeug.utils import secure_filename2627 UPLOAD_FOLDER = '/path/to/the/uploads'28 ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])29
152 unmodified lines