开发者

Create an upload form, select a folder and get a specific file in folder

开发者 https://www.devze.com 2022-12-26 14:09 出处:网络
To upload a single file, it is very simple to use this HTML script: <p> <input type=\"file\" name=\"input.txt\" />

To upload a single file, it is very simple to use this HTML script: <p> <input type="file" name="input.txt" />

In this question, my task is to select a folder and then get the input.txt inside that folder. The server will response whether input.txt is available or not and to upload it to web server.

Is there 开发者_StackOverflow社区any way to select a folder instead selecting a file in the input form. Thanks.


You can't use HTML to select folder. However, you can use Java applet, Flash or other similar technologies in order to show folder selection dialog in your page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号