Skip to content
Myr

Merge pull request #1461 from justinwp/patch-1

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

fixed import of werkzeug secure_filename

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 3fe68c2, 17d7353 · 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/quickstart.rst+1 added-1 removed
610 unmodified lines
611pass it through the :func:`~werkzeug.utils.secure_filename` function that612Werkzeug provides for you::613614 from flask import request615 from werkzeug import secure_filename615 from werkzeug.utils import secure_filename616617 @app.route('/upload', methods=['GET', 'POST'])618 def upload_file():619 if request.method == 'POST':
271 unmodified lines