开发者

Wordpress Max File Upload Problem

I have created a wordpress custom post type. I am using custom field template to create fields. I have created a file field to upload images. When I upload files then It work like a charm but only 20 files get uploaded and other files get ignored. I know Its a php configuration and I have override the configuration by putting a php.ini file on my server root. Here is what I have done in it.

max_file_up开发者_运维技巧loads = 300

When I run this command to check the configuration values:

echo "max_file_uploads: " . ini_get('max_file_uploads');

Then in output I get 300. But still I am unable to upload more then 20files in a single post. Am I missing something?

P.S I have a shared server and the files I am uploading have max size upto 1.5KB


Check my comment on your question above. Consider having an upload helper like fileuploader. This way, every upload is a request so no limit is reached.

Uploadify allows you to drag&drop files and select multiples files to upload (although they are sent one by one).


I had this same problem, although mine was limited to 25. The issue was the default suhosin.upload.max_uploads setting was set to 25, and like PHP versions before 5.3.4, empty upload fields would count towards this total.

The solution was to override the default suhosin.upload.max_uploads setting after it is included in php.ini. Look for the line extension="suhosin.so" and make sure it is somewhere after that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜