if(trim($_FILES["fileUpload"]["name"][$j]) != "")
{
move_uploaded_file($_FILES["fileUpload"]["tmp_name"][$j],"../../../../uploads/msg_attachment/".time()."_".$_FILES["fileUpload"]["name"][$j]);
}
upload_max_filesize 128M
max_file_uploads 20
没有错误。请帮助
答案 0 :(得分:0)
我认为Brijal Savaliya是对的,你将POST_MAX_SIZE和MAX_EXECUTION_TIME等一起更改为更高的值,你可以通过两种方式来做到这一点......
通过PHP代码
//You can write a code to change this value by function
ini_set('POST_MAX_SIZE',128M);
ini_set('MAX_EXECUTION_TIME ',300);
在PHP.ini文件中编辑
POST_MAX_SIZE = 128M
MAX_EXECUTION_TIME = 300