Programmatic File Add
Add files via the addFile() and addFiles() API methods instead of user interaction.
// Add a Blob with a custom name
var blob = new Blob(['content'], { type: 'text/plain' });
uploader.addFile(blob, 'my-file.txt');
// Add a real File object
var file = new File([json], 'data.json', { type: 'application/json' });
uploader.addFile(file);