Hi,
I am trying to save an image in my local drive, it will show the file but when i open it, it says it cant be displayed.
const dlink: HTMLAnchorElement = document.createElement('a');
dlink.download = droppedFile.relativePath; // the file name
dlink.href = 'data:text/plain;charset=utf-16,';
dlink.click(); // this will trigger the dialog window
dlink.remove();