I have a rails 3 app that has a comment system that allows a user to make comments. What I now wish to do is extend this further by enabling the user to attach/upload files to the comment system. Fairly easy question I am about to ask. What is the best tool/plugin or gem to use so that I can achieve this? I've done some thorough research and found that alot of these plugins such as carrierwave, paperclip and a few others are used to upload photos and I am not trying to do this.
Requirements<ul><li>User should be able to upload/attach files </li> <li>Can upload word, powerpoint or execel docuements </li> </ul>Answer1:
Both carrierwave and paperclip can be used to upload any type of files - they have extra features if you want to upload images, but they are not restricted to handling just image files. In the end it's a matter of preference. I found both paperclip and carrierwave to be very good at what they do.Answer2:
<a href="http://railscasts.com/episodes/134-paperclip" rel="nofollow">Paperclip</a>
<a href="http://railscasts.com/episodes/253-carrierwave-file-uploads" rel="nofollow">CarrierWave</a>
As for me CarrierWave more modern and nice solution. Have a try.Answer3:
You can use even dragonfly - <a href="https://github.com/markevans/dragonfly/" rel="nofollow">https://github.com/markevans/dragonfly/</a>