adie / dragonfly-cloudinary

Simple cloudinary data store for Dragonfly
MIT License
7 stars 1 forks source link

Unable to upload in cloudinary #2

Open sumanranjanpanda opened 10 years ago

sumanranjanpanda commented 10 years ago

Hi Anton, I want to upload files/images to cloudinary using my refinerycms app. Since refinery uses dragonfly for handling images and other attachments. So, I have tried the provided steps to use cloudinary. But it didn't help me.

Can you please provide me the steps I should follow while integrate with refineryCMS?

Following are the detail information Ruby - 1.9.3 p194 Rails - 3.2.17 Refinery CMS - 2.1.2

adie commented 10 years ago

Hi Suman, I quickly looked through Refinery sources, it looks like you need to specify it via custom_backend_class config variable in Refinery::Images config. I assume that you have config/initializers/refinery/images.rb file, which should contain now:

Refinery::Images.configure do |config|
   ...
   config.custom_backend_class = Dragonfly::DataStorage::CloudinaryStore
   ...
end
sumanranjanpanda commented 10 years ago

Thanks Adie for your help. I'll implement this and let you know.