為什么是空?
CI框架下print_r();當(dāng)input多個(gè)是為什么會(huì)返回空數(shù)組?
<html>
<head><title>文件上傳</title></head>
<body>
<form action="action/doAction" method="post" enctype="multipart/form-data" >
請(qǐng)選擇上傳的文件:<br/>
<input type="file" name="myfile1" /><br/>
<input type="file" name="myfile2" /><br/>
<input type="file" name="myfile3" /><br/>
<input type="file" name="myfile4" /><br/>
<input type="submit" value="上傳文件">
</form>
</body>
</html>
2015-06-02
這個(gè)不會(huì)吧,你直接打印$_FILES是空嘛?
你在看看你php配置文件中
max_file_uploads = 20
這個(gè)是一次允許最大上傳的文件
還有就是檢測(cè)下你上傳文件的總大小是否超過(guò)了post_max_size選項(xiàng)的值,如果超過(guò)了同樣也接受不到
^-^...
2015-07-16
謝謝啦