importer S3 Get Error
Hi all , I have problem with importer and disk use S3,
after I upload .csv faile I get error
5 Replies
Hey !!
Any idea ? Getting the same error here.
If I comment FILAMENT_FILESYSTEM_DISK from env, it works.
In the error above I see double
/
in 3.amazonaws.com//
. Not sure whether that's an issue though.It's strange...
I'm uploading photos and videos with no problem to s3, but for some reason, it's not working with Importer.
Error executing "GetObject" on "https://regalwings-public.s3.amazonaws.com//var/www/storage/app/livewire-tmp/SktuHD41H7BCaimeIATGEq7YXd7s08-metaZGF5c19jc3YuY3N2-.csv"; AWS HTTP error: Client error:
GET https://regalwings-public.s3.amazonaws.com//var/www/storage/app/livewire-tmp/SktuHD41H7BCaimeIATGEq7YXd7s08-metaZGF5c19jc3YuY3N2-.csv
resulted in a 404 Not Found
omg, now I saw that's something related to s3 path.
I didn't fix it yet...
A lot of tries but it seems the path generated on TemporaryUploadedFile is wrong.
I've tried to set both variables to s3
FILAMENT_FILESYSTEM_DISK=s3
FILESYSTEM_DISK=s3
I'm using s3 on FileUpload for example and it works like a charm, but with Importer is not working.
If I remove FILAMENT_FILESYSTEM_DISK from my env, it works, but saving files in my local.Yes, that's right, as @Dennis Koch said, there was an error in the S3 bucket policy process. after I made some changes it worked.
and you just need to setup FILAMENT_FILESYSTEM_DISK=s3
Thank you @Jr.Pikong