开发者

UPLOAD_ERR_EXTENSION (#8) in PHP?

I'm completely stuck on this one. Whenever I upload a large开发者_Python百科 file, larger than 8MB (approx), I get this error code in the $_FILES array... I looked at the loaded extensions, but it didn't help... The max file upload is 50M and the max post is 55M.

Has anyone else had this problem before, and know of an extension that may be causing it?

edit: I just noticed that's it's actually caused by attempting to upload binary files (a 5KB a.out file doesn't upload). How can I allow this? What extension is blocking the upload of binary files?


I guess I will be answering my own question... It was caused by suhosin. I went to /etc/php5/conf.d/suhosin.ini, and uncommented these lines, and it works flawlessly now:

suhosin.upload.max_uploads = 10
suhosin.upload.disallow_elf = off
suhosin.upload.disallow_binary = off
suhosin.upload.remove_binary = off
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜