I am trying to get the file object of an image stored in my websites folder. The image is already stored in the website and their is no need for "input type = "file"". This is what I have so far
         var file = new File([""], "../writeto/image.png", {
                             type: "png",
                        })
         console.log(file);
This code just creates an empty file object without an actual file in it. Is there a way to insert the image file into the object
 
    