I get local directories for images in a csv file and the task is to upload them to a server with an api that deals with files or blobs ... so I need to convert those local directories to files or blobs (example: C:\folder\file).
I thought this is a common case that wouldn't take much time to dig up a solution for but it turned out to be a little bid of a confusion or maybe I am not yet really that flexible with JavaScript.
I tried this:
var file = File.createFromFileName("path/to/file");
based on the documentation (here)
I get : File.createFromFileName is not a function The test is conducted on firefox.