scheri It could perhaps be hacked by adding _files/js/custom.js and forcing a "click" event on the upload-button after document load. But I dont know how to do this.
Ok, I have created a custom script that works. It's not very nice, because we can't really access the Files gallery uploader from the outside, and we don't even know if it's loaded. The only solution is to use an interval, check when everything is loaded and simulate clicks on certain buttons. Create a file _files/js/custom.js
and add:
var timer = setInterval(() => {
if(typeof Uppy !== 'object') return;
var folder_actions = document.getElementById('folder-actions');
if(!folder_actions) return;
folder_actions.click();
var upload_button = document.querySelector('[data-action="upload"]');
if(!upload_button) return;
upload_button.click();
clearInterval(timer);
}, 500);
scheri NICE-TO-HAVE:
Upload section should has its own route (similar to popup section diagnosis page) so deep links can be generated.
I'll add it to next release ?path&upload=1