The way js behaves it does not allow you to access OS resources directly. so getting the full path for a file name is impossible.
so that is why it created a hook File input. so you have to first go through browser native api's and it will return the file for you.
I guess your requirement is to open a file without user intervention.
so in order to do so you have to create a simple static file server and get the download URL. (Simple 2 min node js app , or asp.net core app or other simple app)
and have the user upload all the files they need and arrange them. then you can create a config file
Report1DocURL: '
https://elakiri.com/docs/report1.csv',
Report2DocURL: '
https://elakiri.com/docs/report2.csv'
then you can access Report1DocURL config variable and get the file from the server and have it processed.
This is i think the slandered way to do this
------
Post added on Feb 14, 2022 at 1:04 PM