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 Pereira3w 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
elrincondeismaOP3w ago
but is private
awcodes
awcodes3w 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
elrincondeismaOP3w ago
thanks
Want results from more Discord servers?
Add your server