Changes between Initial Version and Version 2 of Ticket #36587


Ignore:
Timestamp:
Sep 1, 2025, 10:45:26 AM (2 hours ago)
Author:
Natalia Bidart
Comment:

Thank you Baptiste, I see the oddity in the phrasing, though I also understand Tim's point that the sentence is trying to say "do not use append here even if you are tempted to do so".

Accepting since this could be better phrased, my proposal (as a starting point):

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36587

    • Property Triage Stage UnreviewedAccepted
  • Ticket #36587 – Description

    initial v2  
    1 The documentation about changing upload handlers on the fly [1] states:
     1The documentation about [https://docs.djangoproject.com/en/5.2/topics/http/file-uploads/#modifying-upload-handlers-on-the-fly changing upload handlers on the fly] states:
    22 
    33  For instance, suppose you’ve written a ProgressBarUploadHandler that provides feedback on upload progress to some sort of AJAX widget. You’d add this handler to your upload handlers like this:
Back to Top