0

I get the full path of a file, how to instantiate a File object with this path ?

terrrrrrgl
  • 31
  • 5
  • 2
    It's not possible. Otherwise, any page could try to load `/path/to/passwordFile.txt` without you even knowing it. – Felix Kling Feb 17 '17 at 07:43
  • I thought you might use a file dialog but it seems you cannot pre set the path: http://stackoverflow.com/questions/29467588/how-to-open-html-file-dialog-with-specified-path-from-javascript – mvermand Feb 17 '17 at 07:50

0 Answers0