TacoMaster6000
TacoMaster6000

Reputation: 324

File system for carrier wave

I have been looking at carrier wave for image uploading for a website I am creating. I have heard good things about carrier wave and same with paper clip.

What I can't seem to find information on is how either gem handles its file system. Do you I need to get a plugin to make a fast query-able file system? Were these gems(specifically carrier wave) desgined to handle a large amount of users posting pictures and if so how do they save the files?

One option that I will probably use is severin's answer at the very bottom of this link.

However if these gems already have a good file system implemented then there isn't a point in over complicating things, just need some input from you guys on the matter.

Upvotes: 0

Views: 229

Answers (1)

Rafal
Rafal

Reputation: 2576

I used Paperclip with Rails 2 and switched to Carrierwave when migrated to Rails 3.

Both of these solutions write the files to the public folder with a similar folder structure.

Carrierwave also has another nice gem "Carrierwave direct" which allows to upload to a remote server or S3 directly from the user browser, which is nice for scaling. It is also a requirement when using Heroku which doesn't have a file system (or didn't have one available prviously)

Upvotes: 1

Related Questions