如何将文件夹作为html中的输入? [英] How to take folder as a input in html?
本文介绍了如何将文件夹作为html中的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想将文件作为HTML中的输入,我将使用
If i want to take a file as a input in HTML i will be using
<input type="file">
现在我的问题是,是否可以将整个目录作为输入,如果是的话做到这一点?
Now my question is, is it possible to take a whole directory as a input,if yes how to do that?
推荐答案
没有明确地通过HTML(虽然我不确定HTML 5)。您需要一些Java小程序或Flash电影才能做到这一点。我这样做的一种方式是使用自定义PHP脚本,它接收一个zip或tar文件,并在后端解压缩,然后转储它。
Not explicitly through HTML (although I'm not sure about HTML 5). You need some Java applet or Flash movie to do it. One way I do it is by using a custom PHP script that takes in a zip or tar file and decompresses it on the back end then dumps it.
这篇关于如何将文件夹作为html中的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文