img is not showing up when add full path in src attribute
when I add this line of code (Example 1) then the image is added and showing in the UXP UI panel but when I use the full path in the "src" attribute then it's not working.
Example 1 -
const img1 = new Image(); // Image constructor
img1.src='./ravi.jpg';
img1.alt = 'alt';
document.body.appendChild(img1)
Example 2 -
const img1 = new Image(); // Image constructor
img1.src='file://D:/Extensions/Photoshop_Ext/UXP_Extension/UxpStarterPlugin/ravi.jpg';
img1.alt = 'alt';
document.body.appendChild(img1)
