Skip to content
Myr

fixing cross-referenced links on quickstart page

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

authored by matt swanson · committed by matt swanson · parent 4046d3b · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/quickstart.rst+3 added-3 removed
546 unmodified lines
547filesystem. You can access those files by looking at the548:attr:`~flask.request.files` attribute on the request object. Each549uploaded file is stored in that dictionary. It behaves just like a550standard Python :class:`file` object, but it also has a551:meth:`~werkzeug.FileStorage.save` method that allows you to store that551:meth:`~werkzeug.datastructures.FileStorage.save` method that allows you to store that552file on the filesystem of the server. Here is a simple example showing how553that works::554555 from flask import request
6 unmodified lines
562 ...563564If you want to know how the file was named on the client before it was565uploaded to your application, you can access the566:attr:`~werkzeug.FileStorage.filename` attribute. However please keep in566:attr:`~werkzeug.datastructures.FileStorage.filename` attribute. However please keep in567mind that this value can be forged so never ever trust that value. If you568want to use the filename of the client to store the file on the server,569pass it through the :func:`~werkzeug.secure_filename` function that569pass it through the :func:`~werkzeug.utils.secure_filename` function that570Werkzeug provides for you::571572 from flask import request573 from werkzeug import secure_filename
172 unmodified lines