Available in the OSS Version

File Upload - API and Events

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

This sample illustrates the client events that are available for the jQuery Upload control. The events 'fileSelecting' and 'fileSelected' are fired when selecting a file from the dialog window. While files are uploading, the handlers of 'fileUploading' and 'fileUploaded' are called. The 'onError' is called, for example, when you try to upload file larger than 1 MB. The 'fileUploadAborted' event is fired when you stop one uploading file, and the 'cancelAllClicked' event is fired when you stop all of them using the 'Cancel' button. Note: You can upload files with a size smaller than 1 MB.

Code View

Copy to Clipboard