Skip to main content

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

Rails • Asked by Drilon Buzuku

Hey guys,

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


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.


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.


@Chris Oliver @Maud de Vries thank you!


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


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.