php multiple file upload not working at server

為{幸葍}努か 提交于 2019-12-12 02:05:39

问题


I've shared hosting and there is a script to upload multiple files at once at server,

It is working properly in localhost but it seems not working at the remote server.

However while there is less amount of files, it works. I've set below php.ini variables as,

php.ini file on server

upload_max_filesize = 100M
post_max_size = 100M
max_file_uploads = 70
post_max_size = 100M

I've also set below variables at upload back-end script,

ini_set('post_max_size', '100M');
ini_set('upload_max_filesize', '100M');
ini_set('max_execution_time', 0);
ini_set("memory_limit", "-1");
set_time_limit(0);
ini_set('max_file_uploads', '100');

ini_set('display_errors', 1); 
error_reporting(E_ALL); // E_ALL

and still not working.

There is no error / warnings displaying. And also looking in phpinfo(), the values are as correct as it should be (as specified above)

Note : Generally I've around 800kb per file and number of files are generally around 25.


回答1:


change permission of destination folder to 777 at your server and it will be upload. because in local when windows is used windows is not rude about permission to add content to directory but linux is very consicious about permission




回答2:


Problem is solved.

Reason of problem : Changes to the php.ini was not reflecting at server. So, contacting hosting provider, the problem is solved.



来源:https://stackoverflow.com/questions/26073066/php-multiple-file-upload-not-working-at-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!