summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJames Bennett <ubernostrum@gmail.com>2008-08-31 10:23:36 +0000
committerJames Bennett <ubernostrum@gmail.com>2008-08-31 10:23:36 +0000
commitce24a1f81d83f6d253798f717357686cb0a26571 (patch)
tree012f1a382b204610da98fc1a05ba92f253804563 /docs
parent78ca7a6c073e07f311e37b45d8dfe7fce7465e06 (diff)
Fixed #7654: Documented the fact that file upload handlers must be modified before reading request.POST
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/file-uploads.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt
index 08b0b761dd..d8bd0dc4f6 100644
--- a/docs/topics/http/file-uploads.txt
+++ b/docs/topics/http/file-uploads.txt
@@ -254,10 +254,12 @@ list::
.. note::
- You can only modify upload handlers *before* accessing ``request.FILES`` --
- it doesn't make sense to change upload handlers after upload handling has
- already started. If you try to modify ``request.upload_handlers`` after
- reading from ``request.FILES`` Django will throw an error.
+ You can only modify upload handlers *before* accessing
+ ``request.POST`` or ``request.FILES`` -- it doesn't make sense to
+ change upload handlers after upload handling has already
+ started. If you try to modify ``request.upload_handlers`` after
+ reading from ``request.POST`` or ``request.FILES`` Django will
+ throw an error.
Thus, you should always modify uploading handlers as early in your view as
possible.