Programmatic Upload

Programmatic Upload

Trigger file selection and upload entirely from JavaScript code. Use browse() to open the file dialog and startUpload() to begin uploading.

var uploader = AjaxUploader.create(element, {
    multiple: true,
    autoUpload: false,
    showProgress: true
});

// Programmatic control
uploader.browse();       // Open file dialog
uploader.startUpload();  // Start uploading queued files
uploader.clearQueue();   // Remove all queued files