diff options
Diffstat (limited to 'docs/ref/request-response.txt')
| -rw-r--r-- | docs/ref/request-response.txt | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 486ede0a78..89e5195a4e 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -93,18 +93,7 @@ All attributes except ``session`` should be considered read-only. A standard Python dictionary containing all cookies. Keys and values are strings. -.. attribute:: HttpRequest.FILES - - .. admonition:: Changed in Django development version - - In previous versions of Django, ``request.FILES`` contained - simple ``dict`` objects representing uploaded files. This is - no longer true -- files are represented by ``UploadedFile`` - objects as described below. - - These ``UploadedFile`` objects will emulate the old-style ``dict`` - interface, but this is deprecated and will be removed in the next - release of Django. +.. attribute:: HttpRequest.FILES A dictionary-like object containing all uploaded files. Each key in ``FILES`` is the ``name`` from the ``<input type="file" name="" />``. Each @@ -123,6 +112,16 @@ All attributes except ``session`` should be considered read-only. ``enctype="multipart/form-data"``. Otherwise, ``FILES`` will be a blank dictionary-like object. + .. versionchanged:: 1.0 + + In previous versions of Django, ``request.FILES`` contained simple ``dict`` + objects representing uploaded files. This is no longer true -- files are + represented by ``UploadedFile`` objects as described below. + + These ``UploadedFile`` objects will emulate the old-style ``dict`` + interface, but this is deprecated and will be removed in the next release of + Django. + .. attribute:: HttpRequest.META A standard Python dictionary containing all available HTTP headers. |
