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 am using the following method to check whether the image exists or not in dropbox, But it shows "true" even if the image is not present.
My uploader:
class Avatar < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
storage: dropbox
def store_dir
if model
"uploads/#{model.class.to_s.underscore}/#{model.id}/#{mounted_as}"
else
"uploads/#{mounted_as}/"
end
end
end
I am using the following method to check whether the image exists or not in dropbox, But it shows "true" even if the image is not present.
My uploader:
Console output:
I should get "false" when the image is not present in dropbox. Kindly help me to solve this.
The text was updated successfully, but these errors were encountered: