File

src/ui/file-upload/interfaces/smart-file-upload-event-arg.ts

Description

Extended upload event argument that includes optional context data. Allows external handlers to set context that will be included in the upload request. The context will be added as a separate part in the multipart/form-data request with Content-Disposition: name=context and the data as JSON.

Index

Properties
Methods

Constructor

constructor(sender: SmartFileUploadComponent)
Parameters :
Name Type Optional
sender SmartFileUploadComponent No

Properties

Public Readonly sender
Type : SmartFileUploadComponent

Methods

cancel
cancel()

Cancels the upload.

Returns : void
getContext
getContext()

Gets the context for the upload.

The context.

isCanceled
isCanceled()

Checks if the upload is canceled.

Returns : boolean

True if the upload is canceled, false otherwise.

setContext
setContext(context: any)

Sets the context for the upload.

Parameters :
Name Type Optional Description
context any No
  • The context to set.
Returns : void

results matching ""

    No results matching ""