如何设置选择文件夹路径? [英] How to set select folder path ?

查看:147
本文介绍了如何设置选择文件夹路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想知道是否有任何方法可以选择HTML中的文件夹路径,而不是文件路径.
所以我们有

Hello,
I would like to know if there is any way to select a folder path in HTML, rather that a file path.
so we have

<input type="file" name="BrowseFolder" size=50 onchange="BrowseFolder_OnChange">
</form>



这个选择文件并将文件路径放置在文本框中,但是我想要一个文件夹.



This one selects the file and places the file path in the text box, but i wanted a folder. is there any way this can be done.

推荐答案

否.从理论上讲,您可以允许用户选择一个文件,然后从路径中提取该文件夹.
No. You could, in theory, allow the user to pick a file and then extract the folder from the path.


这篇关于如何设置选择文件夹路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆