mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +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:
@@ -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
|
||||
|
||||
@@ -195,8 +195,9 @@ File Storage
|
||||
File Uploads
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
|
||||
* The new :meth:`FileUploadHandler.upload_interrupted()
|
||||
<django.core.files.uploadhandler.FileUploadHandler.upload_interrupted>`
|
||||
callback allows handling interrupted uploads.
|
||||
|
||||
Forms
|
||||
~~~~~
|
||||
|
||||
Reference in New Issue
Block a user