4 ms·
I've only used Paperclip a few times for some really basic uploading without any processing. By design, it really aims for simplicity which can be a bit of a pa
by Bluestrike2 11y ago
I've only used Paperclip a few times for some really basic uploading without any processing. By design, it really aims for simplicity which can be a bit of a pain if you try to do more so I'd always opt for Carrierwave in those circumstances. It's a lot more flexible, and it's nice to avoid cluttering up your models. Refile has always kind of rubbed me the wrong way; processing images on-the-fly reminds me of a really nasty experience I had with a PHP app a few years back that I was asked to "fix." Given the choice, I'd prefer to avoid it altogether though I realize there are a few use cases where it makes more sense. Chalk that one up to a personal bias, I suppose.
- janko-m 11y agoI feel the same as you. Refile was first very exciting for me, because if you wanted to change a version, you don't have to reprocess them, you only have to change the URL in the HTML. But that means that if you have a page with lot of these images, it would be super slow and can really easily DoS your server. And CDNs also cache the images for like 4 hours, which is terrible. I realized it's much better to just have the thumbnails done immediately. Yes, I was inspired by CarrierWave's uploaders, the goal of Shrine is to have all of the uploading logic in the uploader. And it even allows you too hook up to ".included" of the model that receives the attachment methods, from inside the uploader (http://shrinerb.com/rdoc/classes/Shrine/Plugins/Included.html http://shrinerb.com/rdoc/classes/Shrine/Plugins/Included.htm...).