SuccessEvent

Fires when the selected files are successfully uploaded or removed.

@Component({
   selector: 'my-upload',
   template: `
   <kendo-upload
     [saveUrl]="uploadSaveUrl"
     [removeUrl]="uploadRemoveUrl"
     (success)="successEventHandler($event)">
   </kendo-upload>
   `
 })
 export class UploadComponent {
   uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
   uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint

   successEventHandler(e: SuccessEvent) {
     console.log('The ' + e.operation + ' was successful!');
   }
 }

Arguments for the success event:

files Array<FileInfo>

The list of the files that were uploaded or removed.

operation OperationType

The operation type (upload or remove).

response HttpResponse

The response object returned by the server.

Constructors

SuccessEvent (files: Array<FileInfo>, operation: OperationType, response: HttpResponse)

Constructs the event arguments for the success event.

Parameters

files Array<FileInfo>

The list of the files that were uploaded or removed.

operation OperationType

The operation type (upload or remove).

response HttpResponse

The response object returned by the server.

Methods

isDefaultPrevented

If the event is prevented by any of its subscribers, returns true.

Returns

boolean true if the default action was prevented. Otherwise, returns false.

preventDefault

Prevents the default action for a specified event.
In this way, the source component suppresses the built-in behavior that follows the event.