在Google App Engine上开启文件上传功能 [英] Turn file uploads on for php on Google App Engine

查看:130
本文介绍了在Google App Engine上开启文件上传功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法获取打开文件上传的php.ini设置。默认设置已关闭,如此处所述。在文档中说它可以添加自己的php.ini文件并更改默认设置。

  google_app_engine.enable_functions =php_sapi_name,我的php.ini文件在下面,其他设置正在工作并显示在调用phpinfo时。 gc_enabled,phpinfo
upload_max_filesize = 2M
max_file_uploads = 20
file_uploads = 1




p>在PHP中处理文件上传的当前解决方案如下所述:
https ://developers.google.com/appengine/docs/php/googlestorage/


I can't get the php.ini setting for file uploads to turn on. The default setting is off as described here. In the documentation it says you can add your own php.ini file and change the default settings. My php.ini file is below and the other settings are working and show when calling phpinfo.

google_app_engine.enable_functions = "php_sapi_name, gc_enabled, phpinfo"
upload_max_filesize = 2M
max_file_uploads = 20
file_uploads = 1

解决方案

Are you aware that Google App Engine only allows upload of files via specific API instead of using the language's default upload?

The current solution for handling file upload in PHP is described here: https://developers.google.com/appengine/docs/php/googlestorage/

这篇关于在Google App Engine上开启文件上传功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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