Create File object Type - Reactjs

Viewed 3099

I have been working on react.js to upload multiple files, I see the output in console.log,

it shows the output like - [File, File, File], if I uploaded three files

Where each File contains name, path, size, last modified, etc., for corresponding file which I uploaded.

I printed the typeof each file and its properties, it look like this -

output

My doubt - Is it possible to create a File type object for a file saved in public folder which contains all the details of the file[name, path, lastmodified, etc.] instead of uploading them?

Thanks

1 Answers
Related