You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use fog-backblaze as a provider.
But when I upload images, undefined method copy_object error occurred.
My settings in config/initializers/carrierwave.rbare like below
CarrierWave.configure do |config|
config.fog_credentials = {
provider: ENV['service'],
b2_key_id: ENV['key_id'],
b2_key_token: ENV['key_token']
}
config.fog_directory = ENV['bucket_name']
config.fog_public = true
end
and my uploader
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
storage :fog
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
process resize_to_fit: [200,200]
end
can u help me ? thank you !! @
The text was updated successfully, but these errors were encountered:
environment
rails : 6.0.3.4
carrierwave : 2.1.0
fog-backblaze : 0.3.0
I tried to use fog-backblaze as a provider.
But when I upload images, undefined method copy_object error occurred.
My settings in config/initializers/carrierwave.rbare like below
and my uploader
can u help me ? thank you !! @
The text was updated successfully, but these errors were encountered: