允许chrome选择/任一目录或文件 [英] Allow chrome to select both/either directory or files

查看:462
本文介绍了允许chrome选择/任一目录或文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在html文件中插入< input type =filename =fileswebkitdirectory> ,chrome将允许您选择目录,但不是文件。


$ b 如果我然后删除webkit目录(< input type =filename =files> ),那么它只会让你选择文件。



如何允许它选择文件和/或目录?

解决方案

这是一个错误我提交了一段时间。


If I insert <input type="file" name="files" webkitdirectory> in a html file, chrome will allow you to select directories, however not files.

If I then remove the webkitdirectory (<input type="file" name="files">) then it will only let you choose files.

How do I allow it to choose both/either files and/or directories?

解决方案

This is a bug I filed a while back.

这篇关于允许chrome选择/任一目录或文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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