Error in S3 upload
I have a field of my bbdd that saves the url of my image. They are saved in S3. But in the bbdd I save the cloudfront url.
How can I make filament work with this url in the fileupload component?
4 Replies
Don't save the url but the relative path to the root dir of the s3 bucket and let the filesystem handle the full path.
but is private
The storage facade and disks work with private too. You just have to set the visibility to private and the disk to s3 on the FileUpload. It was built to work with laravels storage which doesn’t use full URLs. Bruno is correct.
thanks