When try uploading a form with a file greater than 10mb in zf2, the post object will be empty. Meanwhile, I have checked the php INI file settings and the upload_max_filesize is 128M. I really don't know where the error is coming from. I need help
Asked
Active
Viewed 220 times
0
-
You should post some code or better explain the context of your problem. – RacerNerd Feb 27 '14 at 01:31
-
Answer below is probably the right one. If you just getting an empty post and this is a dev env then you could turn on error reporting heres the docs page http://uk1.php.net/function.error-reporting.php but like everything in PHP there is like a million different places you can define this. Don't forget to turn it off in production toooooooooo – Purple Hexagon Feb 27 '14 at 07:46
1 Answers
2
You may have to set post_max_size
as well. See: Increasing the maximum post size
Also, use an inspector such as Firebug to make sure that the browser really is sending the POST data to the server.

Community
- 1
- 1

Brian Kendig
- 2,452
- 2
- 26
- 36
-
Thanks for your, reply. I have set those variables in php.ini and yes the form is being submitted, but when the file size exceeds a certain calue , that is the post becomes empty – lordmaul Feb 27 '14 at 12:01
-
Add `phpinfo();` to one of the php pages on your server, and make sure that the values for `post_max_size` and `upload_filesize` reflect what you set them to. If not, maybe you're changing them in the wrong php.ini? If the values do show up correctly, then are you going through a proxy that might be throwing out your POST body? – Brian Kendig Feb 27 '14 at 15:10
-
Thanks a lot Brian. Turns out that I was using the wrong ini file. Stack overflow, you guys are the best. Everything works fine. Once again thank you brian – lordmaul Feb 27 '14 at 15:35