Skip to main content

StopUpload

This exception is raised when an upload must abort.

Attributes

AttributeTypeDescription
connection_resetboolean = FalseIf True, Django will halt the upload without consuming the rest of the upload, causing the browser to show a connection reset error.

Constructor

Signature

def StopUpload(
connection_reset: boolean = False
) - > null

Parameters

NameTypeDescription
connection_resetboolean = FalseIf True, Django halts the upload without consuming the remaining data, potentially causing a connection reset error in the browser.

Signature

def StopUpload(
connection_reset: boolean = False
) - > null

Parameters

NameTypeDescription
connection_resetboolean = FalseA flag indicating whether to immediately halt the connection or consume the remaining data before stopping