為什么是空?
CI框架下print_r();當input多個是為什么會返回空數組?
<html>
<head><title>文件上傳</title></head>
<body>
<form action="action/doAction" method="post" enctype="multipart/form-data" >
請選擇上傳的文件:<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
這個不會吧,你直接打印$_FILES是空嘛?
你在看看你php配置文件中
max_file_uploads = 20
這個是一次允許最大上傳的文件
還有就是檢測下你上傳文件的總大小是否超過了post_max_size選項的值,如果超過了同樣也接受不到
^-^...
2015-07-16
謝謝啦