tags:

views:

37

answers:

1

I'm completely stuck on this one. Whenever I upload a large 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?

A: 

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
kevin