Unable to check existence S3 Storage R2 Cloudflare
Hi,
I'm using R2 Cloudflare, the file successfully uploaded to bucket, but it's getting error
My resource
Filesystem
Any thoughts about this?
21 Replies
This is probably an error from the Filesystem driver and not Filament, right? Sounds like some issue with access permissions
What do you think I should change?
I don't know. I never worked with R2. Check the permissions
Isn't there more information why it is unable to check existence?
Does R2 support the nested folder structure?
I got error like this, is not enough?
I have no clue about this😢
Here is my CORS policy for R2 Bucket
CORS is client side, not server side, and therefore unrelated.
The visibility probably needs to be set to private like s3. Then you also need to check the bucket permissions themselves for the r2 user.
Already set the permissions to read & write and change the visibility to private, but the error is still there.
You might need to offload the livewire tmp directory to the bucket too. https://livewire.laravel.com/docs/uploads#uploading-directly-to-amazon-s3
This is specifically for s3, but it should work the same way with R2.
Laravel
File Uploads | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
I’m think that r2 is trying to read from your local disk. I could be wrong though.
Do you mean like this? If so, I've set the disk to s3 as well.
This is what I'm confused about, the upload process has gone well, but I don't know where the error is when r2 read the file
Shouldn’t the disk be r2, not s3?
I'm setting the R2 on top of the S3 disk that is already in the filesystem.
Hmm. Not totally sure at this point. Sorry.
😭
I would expect this to work:
Definitely sounds like something between cloudflare and s3 and not anything in Filament though.
Already set it though, but the error persist
Yea. It’s something upstream with the remote as best I can tell.
Can you try it without the filename adjustment?
It seems like the same thing, the same error appears again
Ok. Sorry, I can’t help more then. But seems like the issue is outside filament or laravel at this point.
Solution
SOLVED! This requires SSL and I forgot to enable it on local