作者 lyh

gx

... ... @@ -83,8 +83,7 @@ class AmazonS3Service
if ($file_handle === false) {
return '无法打开文件';
}
$file_stats = fstat($file_handle);
$content_length = $file_stats['size'];
$content_length = filesize($files);
$result = $this->s3->putObject([
'Bucket' => $this->bucket,
'Key' => $key,
... ...