File picker with ability to select folder to be used on a webpage

会有一股神秘感。 提交于 2019-12-12 05:39:07

问题


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!


回答1:


It can be done easily using the "input" html tag with type set to "file". Read this article from w3.org.

Thanks, Vamyip




回答2:


Browsers cannot handle folders themselves. You need to use Flash or Java to do this.



来源:https://stackoverflow.com/questions/4155087/file-picker-with-ability-to-select-folder-to-be-used-on-a-webpage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!