add support for pasting files
parent
6601e719c9
commit
29add89e3d
@ -0,0 +1,4 @@
|
||||
const fileInput = document.getElementById("file-upload");
|
||||
window.addEventListener('paste', e => {
|
||||
fileInput.files = e.clipboardData.files;
|
||||
});
|
Loading…
Reference in New Issue