We are using Cloudinary Rails gem with Active Storage.
Files are uploaded correctly to Cloudinary and when file is image or PDF then links are generated correctly like below.
When file extension is something else like document or excel then it's uploaded to Cloudinary but file URL still returned by Active Storage as it is image like above but in Cloudinary it shows as follow:
class Item < ApplicationRecord
To get url:
When Active Storage service is set to Cloudinary then it doesn't seem to return correct URL when Cloudinary resource_type is raw. URL always has "image" in it instead of "raw". Is there any parameter we can set to get correct URL in case of raw files?
Please sign in to leave a comment.