Directory Chooser in HTML page

后端 未结 5 582
南旧
南旧 2020-11-22 11:23

How can I create a directory chooser in html page.
If I use input file element I can select file only, but I need to select directory instead.
I need to do this beac

5条回答
  •  余生分开走
    2020-11-22 12:12

    Scripting is inevitable.

    This isn't provided because of the security risk. is closest, but not what you are looking for.

    Checkout this example that uses Javascript to achieve what you want.

    If the OS is windows, you can use VB scripts to access the core control files to browse for a folder.

提交回复
热议问题