Skip to content
Myr

Merge pull request #948 from Spittie/patch-1

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

Update fileuploads.rst

authored by Armin Ronacher · committed by Armin Ronacher · parents 6075797, de3dbd3 · 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