0

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;
2018-02-07 提问

1 个回答

0

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

你可能感兴趣的

推广链接