Skip to content

Commit

Permalink
Fixed #7654: Documented the fact that file upload handlers must be mo…
Browse files Browse the repository at this point in the history
…dified before reading request.POST

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ubernostrum committed Aug 31, 2008
1 parent 78ca7a6 commit ce24a1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/topics/http/file-uploads.txt
Expand Up @@ -254,10 +254,12 @@ list::


.. note:: .. note::


You can only modify upload handlers *before* accessing ``request.FILES`` -- You can only modify upload handlers *before* accessing
it doesn't make sense to change upload handlers after upload handling has ``request.POST`` or ``request.FILES`` -- it doesn't make sense to
already started. If you try to modify ``request.upload_handlers`` after change upload handlers after upload handling has already
reading from ``request.FILES`` Django will throw an error. 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 Thus, you should always modify uploading handlers as early in your view as
possible. possible.
Expand Down

0 comments on commit ce24a1f

Please sign in to comment.