|
...
|
...
|
@@ -54,9 +54,8 @@ class TencentCosService extends BaseService |
|
|
|
'Host: ' . $this->config['bucket'] . '.cos.' . $this->config['cosRegion'] . '.myqcloud.com'
|
|
|
|
);
|
|
|
|
// 打开文件流
|
|
|
|
$url_path = config('filesystems.disks.upload')['root'].$path.'/'.$fileName;
|
|
|
|
$fileContent = file_get_contents($url_path);
|
|
|
|
return $this->http_put($url,$fileContent);
|
|
|
|
$filePath = config('filesystems.disks.upload')['root'].$path.'/'.$fileName;
|
|
|
|
return $this->http_put($url,$filePath,$headers);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|