upload_max_filesize,php.ini和Google App Engine [英] upload_max_filesize, php.ini, and Google App Engine

查看:37
本文介绍了upload_max_filesize,php.ini和Google App Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行在Google App Engine上的PHP 5.5应用程序。它基于CodeIgniter框架。最近,我开始需要上传超过8 MB的文件。

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.

我一直遇到以下错误

PHP Warning:  POST Content-Length of 8501809 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 

我编辑了php.ini(与app.yaml位于同一目录中),但这似乎并没有影响最大上传大小。

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"

我应该在其他地方设置max_size吗?还有其他字段吗?

Is there somewhere else I should be setting the max_size? Any other fields?

谢谢!

推荐答案

PHP运行时指令文档可能会有用。正如您指出的, php.ini 文件应位于与您的app.yaml相同的目录。我特别想看看 file_uploads max_file_uploads 的值。 (请注意,每个参数的默认值为0,请尝试将其设置为1。)

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).

这篇关于upload_max_filesize,php.ini和Google App Engine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆