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);
Files from somewhere other than the picker
addFile(file) puts a File or Blob into the queue directly, so anything your code can produce can be uploaded: a canvas export, a generated PDF, a recording, a file fetched from another API. The queue treats it exactly like a selected file — same validation, same progress, same retry.
Give it a real name
A Blob has no file name, so wrap it in a File with a sensible one before adding. The name is what the server stores and what the user sees in the queue, and “blob” is neither informative nor unique when there are several.