Available in the OSS Version

File Upload - Overview

The igUpload is an upload control that allows you to upload any type of files, sending them from the browser to the server.

This sample is designed for a larger screen size.

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

The control single uploads (default) or simultaneous, multiple file uploads. . With server-side configuration, the igUpload displays progress information during the file upload operation.

Code View

Copy to Clipboard
$("#igUpload1").igUpload({
    mode: 'single',
    autostartupload: true,
    progressUrl: "../../IGUploadStatusHandler.ashx",
    controlId: "serverID1",
    onError: function (e, args) {
        showAlert(args);
    }
});


        function showAlert(args) {
$("#error-message").html(args.errorMessage).stop(true, true).fadeIn(500).delay(3000).fadeOut(500);
        }