mateimarica / mateimarica.dev

Personal website with an Express.js backend.
https://mateimarica.dev
MIT License
0 stars 0 forks source link

[files] Pasting files doesn't work on Firefox #20

Closed mateimarica closed 1 month ago

mateimarica commented 1 year ago

event.clipboardData just has no items in it. Works fine on chrome.

mateimarica commented 1 year ago

Try document.addEventListener("paste", ... instead of document.onpaste. The latter could be overwriting a browser-set listener.

mateimarica commented 1 year ago

Try document.addEventListener("paste", ... instead of document.onpaste. The latter could be overwriting a browser-set listener.

This is not the issue. I've seen it work before on firefox.

mateimarica commented 1 year ago

Pasting an image from the clipboard (eg: PrtScr then CTRL+V) works fine in Firefox.

Copying files from the File Explorer then pasting does not work.

mateimarica commented 1 month ago

Seems to work fine now on Firefox 129.0