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 latest shrine-cloudinary v1.1.1, with Shrine v3.2.2 in Rails 6.3.2 and Ruby 2.6.5...
config/initializers/shrine.rb
require"shrine"require"shrine/storage/file_system"require"shrine/storage/memory"require"cloudinary"require"shrine/storage/cloudinary"ifENV['CLOUDINARY_URL']Cloudinary.configdo |config|
config.secure=trueconfig.cdn_subdomain=trueendelseRails.logger.info{puts"****** Warning: There is no 'cloudinary' configuration info"}endifRails.env.test?Shrine.storages={cache: Shrine::Storage::Memory.new,# temporarystore: Shrine::Storage::Memory.new,# permanent}elseShrine.storages={cache: Shrine::Storage::Cloudinary.new(prefix: "cache"),# for direct uploadsstore: Shrine::Storage::Cloudinary.new,}endShrine.plugin:activerecordShrine.plugin:cached_attachment_data# for retaining the cached file across form redisplaysShrine.plugin:restore_cached_data# re-extract metadata when attaching a cached fileShrine.plugin:validationShrine.plugin:validation_helpersShrine.plugin:remote_url,max_size: 20*1024*1024Shrine.plugin:determine_mime_typeShrine.plugin:infer_extensionShrine.plugin:upload_options
I want to have the ability to upload from remote urls and to set the folder in every upload (multi-tenant app)
Hello,
I am using latest shrine-cloudinary v1.1.1, with Shrine v3.2.2 in Rails 6.3.2 and Ruby 2.6.5...
config/initializers/shrine.rb
I want to have the ability to upload from remote urls and to set the folder in every upload (multi-tenant app)
If I use:
The cache gets created inside folder 'aaa' but I get the error:
Probably when It moves the file from the cached folder it does not use the specified folder and this must be the reason for the exception...
I try also the following, but the problem persists:
If I use:
then the file gets uploaded in the root folder in cloudinary and the cache file in 'cache' folder (this is not what I want)...
Any ideas?
With my warmest regards for all of Us... :)
The text was updated successfully, but these errors were encountered: