我使用谷歌appengine上传文件在PHP,但它没有上传 . 要首先上传文件我下载了应用引擎 . 在app引擎内部之后,我让我的项目文件夹说即 Cloud (google_appengine / php / sdk / cloud) .

Inside cloud in app.yaml

application: cloud
version: 1
runtime: php55
api_version: 1

handlers:
- url: /.*
  script: cloud.php

In php.ini

; This is a simple php.ini file on App Engine
; It enables output buffering for all requests by overriding the
; default setting of the PHP interpreter.
output_buffering = "On"
max_file_uploads = 10
upload_max_filesize = 100M
session.gc_maxlifetime = 10000
google_app_engine.allow_include_gs_buckets = "#default#, test_bucket_content"

In cloud.php

<?php
require_once '../google/appengine/api/cloud_storage/CloudStorageTools.php';

use google\appengine\api\cloud_storage\CloudStorageTools;

$options = [ 'gs_bucket_name' => 'syncspot-ds.appspot.com'];
echo $upload_url = CloudStorageTools::createUploadUrl('/upload_handler.php', $options);
exit;

我没有收到上传网址 . 在cloudStorageTools.php中,在$ req&$ resp之后存在一些问题 .

public static function createUploadUrl($success_path, $options = array()) {
        $req = new CreateUploadURLRequest();
        $resp = new CreateUploadURLResponse();

    ....
    }

我想它不是与桶连接 . 我使用的是google_appengine_1.9.23,“test_bucket_content”是我的存储桶名称 . 请告诉我在哪里做错了?