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
Bruno Pereira
Bruno Pereira2mo ago
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.
elrincondeisma
elrincondeismaOP2mo ago
but is private
awcodes
awcodes2mo ago
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.
elrincondeisma
elrincondeismaOP2mo ago
thanks
Want results from more Discord servers?
Add your server