CORS Error when uploading to S3 compatiable bucket.
Github Repo: https://github.com/debjit/hackathon-bdd
Branch: dev
This issue is not present when uploading directly ex:
But when using "FileUpload::Make" getting CROS error, I have added CORS middleware and they do not have any use. It is not multi domain.
Here is the fileupload code,
Here is the log
Here is the middleware code
GitHub
GitHub - debjit/hackathon-bdd: Donation Diary is an application tha...
Donation Diary is an application that makes blood donation straightforward. - GitHub - debjit/hackathon-bdd: Donation Diary is an application that makes blood donation straightforward.
20 Replies
Have you configure like this "FilePond requires files to be served from the same domain as the app, or the appropriate CORS headers need to be present" https://filamentphp.com/docs/3.x/forms/fields/file-upload#configuring-the-storage-disk-and-directory
Yes I did setup env to FILAMENT_FILESYSTEM_DISK=bb2
Here is blackblaze cors config file, and bucket settings
cors isn't a filament problem. it's your setup problem. there's plenty information how to set up cors in the internet. you need to search yourself for that
Thanks buddy.
So , I have did check and found no solution. Share the repo and all the information above.
Still, here is my config information for config/cors.php
no no no. cors are set in the s3 settings
You set the CORS in s3 as mentioned. See example in the image
Yes I think this is the same. Allowing everything everywhere.
When directly uploading it is uploading to server but livewire is giving me problems
I also added cors middleware
That should be unrelated to uploading to your Bucket.
That's because it's uploading in the backend. CORS is a frontend issue
Thank you for your reply. I have share the repo please let me know iof you found anything wrong. I love to hear from you. I did a lot of things but does not effect anything
Anyone have this problem? This is not solved yet
I do not have access to this link. And I do reserch before posting. Thanks for sharing.
Get a membership then. I think you would even more then. Can give you secret not so secret discount code
Not sure whether that helps when it’s about Backblaze settings.
Those rules look fine. Haven’t used Backblaze so I don’t have an idea what the issue is.
@Debjit Did you find any solution? I am also facing the same issue?
CORS configuration - Amazon Simple Storage Service
Create an XML or JSON CORS configuration on your bucket.
This helps me to solve my error hope it will help you as well
It's AWS and not Backblaze. I think this issue is related to Backblaze. AWS was discussed and solved multiple times already.
OK
I am still searching for it. I will try another method, create a tip, and share what is going wrong.