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
Hi,
I am trying to copy users and their associated avatar. Avatars must be copied to a different bucket.
What I am trying to do is that
def with_temporary_s3_bucket
begin
CarrierWave.configure do |config|
config.aws_bucket = 'COPY-TO-BUCKET'
end
yield
ensure
CarrierWave.configure do |config|
config.aws_bucket = 'COPY-FROM-BUCKET'
end
end
end
file = parent_user.avatar.file
with_temporary_s3_bucket do
dup_user.avatar = file
end
but this is not uploading any image to 'COPY-TO-BUCKET'
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to copy users and their associated avatar. Avatars must be copied to a different bucket.
What I am trying to do is that
but this is not uploading any image to 'COPY-TO-BUCKET'
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: