I have a input of type file and with the property multiple , that is I can select several files. Specifically, I need to send three types of files to the server:
1. archivo.shp
2. archivo.shx
3. archivo.dbf
I would like that in the menu to choose input files when selecting any of the previous files, automatically select the others (if they exist). That is, if I select archivo.shp
, I also select archivo.shx
and archivo.dbf
if they exist in the same path as file.shp.
How could I implement something like this with JavaScript?