I have an input of type file and with the multiple property , 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 that with JavaScript?
According to the documentation this cannot be done for security
then change the format of your file from .shp to .shx and .dbf
and use the function above to check if there are those files with different format.