[英]Blueimp multiple file upload
I use a jQuery UI file uploader called Blueimp. 我使用了一个名为Blueimp的jQuery UI文件上传器。 It is a very nice stuff, working well with multiple files, but i just can't extract the file names this script has previously uploaded. 这是一个非常不错的东西,可以与多个文件一起很好地工作,但是我无法提取此脚本以前上传的文件名。
When i check the $_FILES array i can only see the last uploaded file. 当我检查$ _FILES数组时,我只能看到最后上传的文件。
When i try to check other members of the array like 当我尝试检查数组的其他成员时
$_FILES['userfile']['name'][1]
$_FILES['userfile']['name'][2]
I am getting back the characters that the filename consists of. 我正在找回文件名所包含的字符。 Anyone knows why only the latest filename is available? 谁知道为什么只有最新的文件名可用?
您必须将type文件的类型定义为HTML数组,如下所示:
<input name="userfile[]" type="file" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.