Websites cannot read random files from the user's disk. You can only read files which the user has explicitly given you access to, either by selecting them in an
<input type="file">
, or by dragging them into your application.
If the user hasn't selected the file, then your code cannot read it.
Using files from web applications - Web APIs | MDN[
^]