Is there a way to retrieve the file object of an image that is stored in my website's folder without using "input type = "file"? The image is already saved on the website. Here is what I have tried so far:
var file = new File([""], "../writeto/image.png", {
type: "png",
})
console.log(file);
The code above only creates an empty file object without any actual content. How can I insert the image file into the object?