I finally managed to solve the PHP File Upload Stalemate!
Thanks, in part, to this forum thread... and a bunch of tinkering around in my php.ini
file...
I realized that the directives that I modified from:
memory_limit = 8M
post_max_size = 8M
upload_max_filesize = 2M
And changed to:
memory_limit = 8000M
post_max_size = 7000M
upload_max_filesize = 6000M
Was causing me to get the following in my HTTPD/error_log
:
[error] PHP Warning: POST Content-Length of 363120480 bytes exceeds the limit of -1249902592 bytes in Unknown on line 0
More specifically it appears that it was the fact that there was just too much of a differential in the post_max_size
and the upload_max_filesize
that was causing the error...
Which was why PHP would overflow to the negative value... and is considered a feature - though not too many people (probably including myself) would really consider such as a feature!!
I was able to fix the error by modifying my edits of the directives to:
memory_limit = 8000M
post_max_size = 6000M
upload_max_filesize = 6000M
And now it works like a charm!...
So far at least with the large 346.3 M file I tested it with. Hopefully it will still work with larger files!
Now it's pretty much off to the races to finish testing the rest of my project.
One set-back down and very likely several more to go!
No comments:
Post a Comment