Is there an analogue

<input id="File1" type="file" /> 

to get the path to the folder that the user chose? I need to get the path to the folder that the user chooses, I don’t want to download it anywhere, the option that he chose the file in the folder is not very suitable in terms of convenience. Written under ie, respectively, solutions that use webkitdirectory directory multiple do not work. An asp.net web form is used with all the consequences, but a similar component could not be found there either.

update: in chrome, the specified construct works, but it seems to return only the names of files in the folder

  • I'm afraid not. - Peter Olson
  • 3
    Browsers for security policies do not allow working with the file system, and therefore such functionality is simply not needed there, there is enough of the usual choice of files. In IE, you can access it via ActiveXObject, but this is still a perversion. - Alex Krass
  • Maximum possible FileReader API: developer.mozilla.org/ru/docs/Web/API/FileReader . There are experimental features like the FileSystem API: developer.mozilla.org/ru/docs/Web/API/FileSystem - IonDen

0