Html – Why is my getAsFile() method returning null?
Here is my code: document.getElementById("Image_Panel").addEventListener('paste', (event) => { console.log("Pasting an image step 1"); const clipboardData = event.clipboardData; // Check if the clipboard data contains an image console.log("Pasting an image step 2"); console.log("Clipboard: " + clipboardData.items[0]); //This return [object DataTransferItem] const…