作者 lyh

gx

... ... @@ -44,6 +44,7 @@ class AmazonS3Service
{
$key = $s3Key.'/'.$filename;
$Body = $binary ? $files : fopen($files->getRealPath(), 'r');
$Body = is_resource($Body) ? stream_get_contents($Body) : $Body;
try {
$result = $this->s3->putObject([
'Bucket' => $this->bucket,
... ...