Turn file uploads on for php on Google App Engine

半城伤御伤魂 提交于 2020-01-30 11:15:05

问题


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:


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/



来源:https://stackoverflow.com/questions/18646338/turn-file-uploads-on-for-php-on-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!