src/ui/file-upload/interfaces/smart-file-upload-event-arg.ts
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.
Properties |
|
Methods |
constructor(sender: SmartFileUploadComponent)
|
||||||
|
Parameters :
|
| Public Readonly sender |
Type : SmartFileUploadComponent
|
| cancel |
cancel()
|
|
Cancels the upload.
Returns :
void
|
| getContext |
getContext()
|
|
Gets the context for the upload.
Returns :
SmartFileUploadEventContext
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 :
Returns :
void
|