@bukxy Something is trying to get the details of an object that doesn’t exist in S3. So check the path and bucket name.
If it was a permissions (IAM) error, then you would have gotten a 403 error. But you’re getting a 404 error instead.
May Sale! All accounts are 40% off this week.
Hello, I want use S3, but i have some problems in localhost I started with an arror where i need to replace in
vendor/flysystem-aws-s3-v3/src/AwsS3Adapter.php
use Aws\S3Client;
by
use Aws\S3\S3Client;
And now i have this error : (i replace the url cause it's my first day)
Error executing "HeadObject" on "HTTPLinkOfMybucket/images/1/CYnewElzWlQgV0wKoBeo9d98f0pD9vWNCCtAwqJY.png"; AWS HTTP error: Client error: `HEAD HTTPLinkOfMybucket/images/1/CYnewElzWlQgV0wKoBeo9d98f0pD9vWNCCtAwqJY.png` resulted in a `404 Not Found` response NotFound (client): 404 Not Found (Request-ID: QBSWZ5RXFZ2F7Y51) -
i filled out AWS config in my .env
I saw something too where we need too add this in my bucket, but none change.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Statement1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::472492315669:user/rs"
},
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::rank-serv/*"
}
]
}
In my controller i tested :
Storage::disk('s3')->put('images', $req->file('banner'))
or
$req->file('banner')->store('images/'.$req->user()->id, 's3')
or
$req->file('banner')->storeAs('images/', $req->user()->id, 's3')
Any idea ?
Please or to participate in this conversation.