SelectEvent

Arguments for the select event. The select event fires when the user
selects a file or multiple files for upload. If you cancel the event, the selection is prevented.

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

   selectEventHandler(e: SelectEvent) {
     console.log('File selected');
   }
 }

files Array<FileInfo>

The list of the selected files.

Constructors

SelectEvent (files: Array<FileInfo>)

Constructs the event arguments for the select event.

Parameters

files Array<FileInfo>

The list of the selected files.

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.