mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads.
This patch allows upload handlers to handle interrupted uploads. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
parent
21b127bfbc
commit
11c4a4412b
7 changed files with 71 additions and 4 deletions
|
|
@ -212,6 +212,13 @@ attributes:
|
|||
|
||||
Callback signaling that the entire upload (all files) has completed.
|
||||
|
||||
.. method:: FileUploadHandler.upload_interrupted()
|
||||
|
||||
.. versionadded:: 3.2
|
||||
|
||||
Callback signaling that the upload was interrupted, e.g. when the user
|
||||
closed their browser during file upload.
|
||||
|
||||
.. method:: FileUploadHandler.handle_raw_input(input_data, META, content_length, boundary, encoding)
|
||||
|
||||
Allows the handler to completely override the parsing of the raw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue