Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Carrierwave and Fog how to catch failed uploads and log them?

When uploading a file using carrierwave errors can occur. For example, if there's an error while using Fog to upload to S3, we won't get an error message. Simply the file won't exist. So, how can I catch these errors with Carrierwave and Fog and log them?

like image 277
THpubs Avatar asked Oct 21 '25 05:10

THpubs


1 Answers

Have you tried validating the integrity or processing of the fail image?

Also take a look at https://stackoverflow.com/a/20195812/1380867 post. I think this is the same problem

like image 196
MZaragoza Avatar answered Oct 23 '25 02:10

MZaragoza



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!