Direct-to-S3 / Azure tus 1.0 resume IndexedDB Golden Retriever 30 locales Webcam & screen capture

External Trigger

Trigger file selection from any button outside the uploader component.

What you should see: the uploader has no visible button of its own; the separate button on the page opens the file picker through the JS API. Useful when the trigger must live in a toolbar.
Drag & drop files here, or paste from clipboard
<core-upload id="externalTriggerUploader"
 asp-upload-url="/api/upload/upload"
 asp-multiple="true"
 asp-progress="true"
 asp-auto-upload="true">
</core-upload>

<button id="btn-external-browse">Browse Files (External)</button>

<script>
var uploader = CoreUpload.getInstance('#externalTriggerUploader');

document.getElementById('btn-external-browse')
 .addEventListener('click', function() {
 uploader.browse();
 });
</script>