Ask A Question

Notifications

You’re not receiving notifications from this thread.

Should I use a gem like paperclip or carrierwave to handle PDF and docx uploads?

Drilon Buzuku asked in Rails

Hey guys,

has anyone advice on this one? Are there maybe better ways to handle document uploads in rails?

Reply

Yep, you can upload any file type you want with Paperclip, Carrierwave, or Shrine. I like Shrine the most personally, it's nice and modular so that's what I'd personally recommend using.

Reply

I am pretty happy with Carrierwave, and I wrote a step_by_step guide: https://medium.com/@mauddev/rails-5-and-carrierwave-53960ec20c4b#.zhy8ybjbp
I did not try Shrine, yet. That looks good too.

Reply

@Chris Oliver @Maud de Vries thank you!

Reply

Dont forget the Shrie videos Chris made, i found them really handy. And i would go with this over CarrierWave now personally.

First one is here https://gorails.com/episodes/file-uploading-with-shrine

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.