const donk = document.getElementById("donkinput"); window.addEventListener('paste', e => { donk.files = e.clipboardData.files; }); donk.onchange();