如何将文件夹作为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.