I have a PHP 5.5 application running on Google App Engine. It's based on the CodeIgniter framework. Recently I started needing to upload files more than 8 MB.
I have been getting the following error
PHP Warning: POST Content-Length of 8501809 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
I edited php.ini (which is in the same directory as app.yaml), but it doesn't seem to impact the maximum upload size.
post_max_size = "16M"
upload_max_filesize = "16M"
memory_limit = "128M"
Is there somewhere else I should be setting the max_size? Any other fields?
Thanks!
The PHP runtime Directives documentation may be useful. As you indicated, php.ini file should be in the same directory as your app.yaml. I'd sugest specifically looking at the file_uploads
and max_file_uploads
values. (Note that the default for each is 0, try setting it to 1).