0

I am trying to upload attachments to my model using Carrierwave. I am following instructions from this post:

Rails 4 multiple image or file upload using carrierwave

In the PostAttachment class, the instructions say add "mount_uploader:avatar, AvatarUploader" which suggests it is an image file. However, I want to upload files such as pdf, excel, word, ppt, etc... So what do I add to the model instead?

Thanks!

Community
  • 1
  • 1
Trung Tran
  • 13,141
  • 42
  • 113
  • 200

0 Answers0