summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorokaybro <66475772+Chaitanya-Keyal@users.noreply.github.com>2025-09-01 23:09:41 +0000
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-09-29 14:50:16 +0200
commit015150999d01ccf573b199f9d6c46729250c0dc4 (patch)
tree1fbb68297b064c699ef592c40a7d0edc235d2a36 /docs
parent956455dc8a8654bad1264c39d02bd5ffafc7733d (diff)
[6.0.x] Fixed #36587 -- Clarified usage of `list.insert()` for upload handlers.
Thanks Baptiste Mispelon for the report Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Backport of afe6634146d0fe70498976c49d2eb4d745aa9064 from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/file-uploads.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt
index f9327808b5..60b3e1a86e 100644
--- a/docs/topics/http/file-uploads.txt
+++ b/docs/topics/http/file-uploads.txt
@@ -289,9 +289,10 @@ this handler to your upload handlers like this::
request.upload_handlers.insert(0, ProgressBarUploadHandler(request))
-You'd probably want to use ``list.insert()`` in this case (instead of
-``append()``) because a progress bar handler would need to run *before* any
-other handlers. Remember, the upload handlers are processed in order.
+Using ``list.insert()``, as shown above, ensures that the progress bar handler
+is placed at the beginning of the list. Since upload handlers are executed in
+order, this placement guarantees that the progress bar handler runs before the
+default handlers, allowing it to track progress across the entire upload.
If you want to replace the upload handlers completely, you can assign a new
list::