Turn file uploads on for php on Google App Engine

2019-03-05 04:19发布

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

1条回答
ゆ 、 Hurt°
2楼-- · 2019-03-05 04:31

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/

查看更多
登录 后发表回答