CarrierWave has amazing documentation until you need to do this without a model!
I have bootloader and fog settings set, and all of them work fine when using a mounted bootloader on a model, but now I want to do this without a model.
I have it:
uploader = CsvUploader.new something = uploader.store!(File.read(file_path)) uploader.retrieve_from_store!(self.file_name)
When I call .store! the code starts right away, which is strange, since it takes a few seconds to download a file?
Then after calling .retrieve_from_store! The uploader object has all the correct S3 data, such as full URLs and more.
However, the call:
uploader.file.exists?
returns false. And looking at the s3 urls returns an error not found from s3.
So what am I doing wrong? To repeat, it works during installation, so I don't think these are my fog settings.
My bootloader:
class CsvUploader < CarrierWave::Uploader::Base
ruby-on-rails-3 amazon-s3 carrierwave fog
andy
source share