提前谢谢
我有我的s3存储桶,并将凭据设置为以下环境变量
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
FILESYSTEM_DRIVER=s3
我已经安装了"league/flysystem-aws-s3-v3": "^1.0"
当我尝试使用以下代码上传文件时
Storage::disk('s3')->put($filePath, file_get_contents($request->file('image')), 'public');
它给了我下面的错误
local.ERROR: Error executing "PutObject" on "{bucket_path}/images/blogs/b1fdcce2ebfaf7cbf6e929789935be9bblog.jpg"; AWS HTTP error: cURL error 60: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"exception":"[object] (Aws\\S3\\Exception\\S3Exception(code: 0)