I am trying to retrieve files using CTRL+V from the ClipboardEvent in Angular6, but I am encountering an issue where the clipboardData is always empty regardless of whether I test images or text. This problem persists even when tested on the latest releases of Chrome and Firefox.
https://i.sstatic.net/ZsOCa.png
As shown in the screenshot provided, the files/items attribute remains empty despite my efforts. Below is a snippet of my current code:
ngOnInit() {
document.addEventListener('paste', this.pasteEvent);
}
private pasteEvent(e): void {
console.log(e);
}