Few days ago I started using laravel with voyager and deployed on heroku server. since heroku uses ephemeral filesystem so I was force to use amazon s3 services. The problem is whenever I upload a image on media manager in my voyager app it gives "Image source not readable" error message but at the same time shows images perfectly. I can only reproduce this error when I'm uploading a image/file or cropping a image. I thought this might be amazon policy issue but I've added policy to allow it still did not work.
Block public access (bucket settings)
Block all public access
Off
Block public access to buckets and objects granted through new access control lists (ACLs)
Off
Block public access to buckets and objects granted through any access control lists (ACLs)
Off
Block public access to buckets and objects granted through new public bucket policies
Off
Block public and cross-account access to buckets and objects through any public bucket policies
Off
Bucket policy editor
{
"Version": "2012-10-17",
"Id": "Policy1************",
"Statement": [
{
"Sid": "Stmt1************",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::my_bucket_name/*"
}
]
}
Image Upload Error Image:
Image Crop Error Image:
from Heroku Laravel Voyager Amazon s3 "Image source not readable" on upload error


No comments:
Post a Comment