如何使用PHP上传文件夹? [英] How to upload folder with PHP?

查看:162
本文介绍了如何使用PHP上传文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在Google上搜索,发现这是一个浏览器限制,我必须使用Java Applet或Flash 。

有没有办法用Flash上​​传文件夹?我对此没有任何线索。有没有什么办法可以让浏览器只获得文件夹路径?

解决方案

使用webkit目录变得可能。 b
$ b

 < input type =filewebkitdirectory directory multiple /> 

尽管目前还没有其他浏览器支持。


Is it possible to upload a folder with browser?

I search in Google and find out that this is a browser limitation and that I must use Java Applet or Flash.

Is there any way to upload folder with Flash? I cannot get any clue about this. Is there any way to get only folder path with browser?

解决方案

It's becoming possible with use of webkitdirectory.

<input type="file" webkitdirectory directory multiple />

Though it doesn't seem to be supported by other browsers yet.

这篇关于如何使用PHP上传文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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