又拍云图片上传失败提示如下

新手上路,请多包涵

Argument 1 passed to UpyunApiRest::__construct() must be an instance of UpyunConfig, instance of dataextendypy_sdksrcUpyunConfig given, called in /www/wwwroot/cswh.me/app/data/extend/ypy_sdk/src/Upyun/Uploader.php on line 36 and defined

代码如下

    $serviceConfig = new ypuConfig('udh', 'jxwql', 'jafdasq');
    $client = new UpYun($serviceConfig);
    $res = $client->write('/app20170907/test.jpeg', $file);
    var_dump($res);die;
阅读 3k
1 个回答

您好, $config = new Config(BUCKET, USER_NAME, PWD);
这里应该分别对应服务名,操作员账号,操作员密码。您再确认一下。

logo
又拍云问答
子站问答
访问
宣传栏