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

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?

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

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.