Search code examples
ruby-on-railsrubyfile-uploadcarrierwavefog

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'
 })

Solution

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