Brett H
Brett H

Reputation: 1169

CarrierWave: Uploading files to non-cloud server

I have looked at documentation for CarrierWave and even looked into the Fog documentation here and here, but I haven't seen any mention of configuring CarrierWave with or without Fog such that I could specify a non-Cloud server as the destination for all uploads.

Any ideas? I would like to ideally have a config like this:

 connection = Fog::Storage.new({
   :provider   => 'None',
   :root => '/home/media/uploads',
   :host   => 'storage.media.com',
   :username   => 'user',
   :password   => 'password'
 })

Upvotes: 2

Views: 732

Answers (2)

Kyle Rames
Kyle Rames

Reputation: 398

I am the Ruby developer advocate for the Rackspace Cloud and I would be happy to help you with any issue you have with our cloud.

The Carrierwave gem is designed to use a storage service like Rackspace Cloud Files as a backend. If you are interested in using a Cloud Server to host your files, you might want to checkout paperclip. I have used it in the past to save files to my Cloud Server and it works great. It also has the option to switch to Cloud Files at a later date.

https://github.com/thoughtbot/paperclip

Let me know if you need any more help.

Upvotes: 1

Brett H
Brett H

Reputation: 1169

Found carrierwave-ftp. I think this is exactly what I was looking for.

Upvotes: 1

Related Questions