views:

59

answers:

3

I'm having issues with a file uploading utility in my PHP application. When sending large files (9MB+) over the form, I get a very odd behaviour: the POST data I've included in the form dissapears, including the file information.

I've already increased all PHP limits I could (time limit, max input time, post max size, memory limit and upload max filesize) and I still can't get the proper behaviour. I've tried replacing the regular HTTP forms with a Flash-based solution (SWFUpload, www.swfupload.org), still the same behaviour.

I've tried multiple files of similar sizes and its definitely not a particular file issue. I've debugged the POST vars sent using Firebug, and the correct variables are still there in the header, together with the file.

What could be going on here?

+1  A: 

try uploading small files of 1 - 2 MB .if you still not able to post the code .

hope you have added enctype='/multipart/form-data' in form definition .

pradeep
I did, and small files do work. The problem shows up on 8MB+ files.Enctype is there.
DfKimera
A: 

What server are you running on? I think some servers OS have a limit set of how large files they allow. This value can be changed.

Marthin
+1  A: 

Web servers can also be configured to limit request sizes. If you're using Apache, check out the LimitRequestBody directive.

webbiedave
I gave a look on the Apache config, the LimitRequestBody directive isn't there, so I assume its on the default value (0, or no limit)
DfKimera