This is not possible because local files are protected. Alternatively, you could manage the hard drive as you wanted by simply running a local HTML page.
So: if you want to get the file from the computerβs hard drive, you should use the field <input>and ask the user to download the file using it.
source
share