文件选择器,具有选择要在网页上使用的文件夹的功能 [英] File picker with ability to select folder to be used on a webpage
问题描述
基本上,我们需要一个文件选择器,该文件选择器可以在网页上使用,以使用户能够选择文件和/或文件夹.但是,我们只需要能够通过javascript获取所选文件的本地(客户端)文件路径,即可在以后与另一个文件上传小程序一起使用.因此,上载上传部分没有问题,只需文件选择器部分即可.
那么是否有任何可用的跨平台/浏览器组件(可以皮肤化),还是我们必须在Java中创建一个自定义组件?还是有更聪明的路要走? p>
感谢您的帮助!
可以使用类型为"file"的"input" html标记轻松完成此操作.从w3.org阅读此文章.
谢谢, Vamyip
Basically what we need is an filepicker that can be used on a webpage to enable the user to select files and/or folders. BUT, we only need to be able to get the local (client side) filepaths for the selected files via javascript, to later be used with another fileupload applet. So the upload upload part is no problem, just the file picker part.
So is there any available crossplatform/browser components available (that can be skinned), or do we have to create a custom one in java? Or is there a smarter way to go?
Thanks for any help!
It can be done easily using the "input" html tag with type set to "file". Read this article from w3.org.
Thanks, Vamyip
这篇关于文件选择器,具有选择要在网页上使用的文件夹的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!