Skip to content

Commit 4046d3b

Browse files
author
matt swanson
committed
fixing cross-referenced links on fileupload patterns page
1 parent 6bdde49 commit 4046d3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/patterns/fileuploads.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ uploads is actually quite simple. It basically works like this:
1010
and an ``<input type=file>`` is placed in that form.
1111
2. The application accesses the file from the :attr:`~flask.request.files`
1212
dictionary on the request object.
13-
3. use the :meth:`~werkzeug.FileStorage.save` method of the file to save
13+
3. use the :meth:`~werkzeug.datastructures.FileStorage.save` method of the file to save
1414
the file permanently somewhere on the filesystem.
1515

1616
A Gentle Introduction
@@ -71,7 +71,7 @@ the file and redirects the user to the URL for the uploaded file::
7171
</form>
7272
'''
7373

74-
So what does that :func:`~werkzeug.secure_filename` function actually do?
74+
So what does that :func:`~werkzeug.utils.secure_filename` function actually do?
7575
Now the problem is that there is that principle called "never trust user
7676
input". This is also true for the filename of an uploaded file. All
7777
submitted form data can be forged, and filenames can be dangerous. For
@@ -80,7 +80,7 @@ before storing it directly on the filesystem.
8080

8181
.. admonition:: Information for the Pros
8282

83-
So you're interested in what that :func:`~werkzeug.secure_filename`
83+
So you're interested in what that :func:`~werkzeug.utils.secure_filename`
8484
function does and what the problem is if you're not using it? So just
8585
imagine someone would send the following information as `filename` to
8686
your application::
@@ -109,7 +109,7 @@ Flask 0.5 we can use a function that does that for us::
109109
filename)
110110

111111
Alternatively you can register `uploaded_file` as `build_only` rule and
112-
use the :class:`~werkzeug.SharedDataMiddleware`. This also works with
112+
use the :class:`~werkzeug.wsgi.SharedDataMiddleware`. This also works with
113113
older versions of Flask::
114114

115115
from werkzeug import SharedDataMiddleware

0 commit comments

Comments
 (0)