-
Why are my files uploaded to format N/A ? (except for images and pdf)
Hello, I've had a situation for a while now where my uploads don't work correctly. I'm developping an app with Rails 7 and use cloudinary for storing files attached to my tickets. storage.yml development & production.rb In Cloudinary, I've allowed raw files. Example : I just tried uploading an excel file (test.xlsx). Logs…
-
Rails 6 upload wdget saves before applying crop
The following code is used in my rails 6.1 application to upload images via the widget. The upload works fine . After cropping the image, either clicking 'crop' or 'save' uploads the original image instead of the crop. <script src="https://upload-widget.cloudinary.com/global/all.js" type="text/javascript"></script> <script…
-
ActiveStorage: use public url?
I'm using Cloudinary as an ActiveStorage store for ActionText in Rails 6.1, cloudinary gem v1.28. Instead of the local signed URL I'd like to have it use the direct URL to Cloudinary. In the ActiveStorage documentation, there is the concept of setting a public flag in storage.yml: cloudinary: service: Cloudinary public:…
-
Rails 7 - TinyMCE and Cloudinary
Hello, I have a Rails 7 application in which I've integrated Cloudinary and TinyMCE. I have Devise and Pundit installed as well. Cloudinary is working perfectly fine; for instance, when a user signs up, they're able to upload their photo. However, I haven't been able to find much information about TinyMCE. I would like the…
-
Rails Active Storage Integration Error when attempting to reset database after adding Cloudinary
I am new to Cloudinary and I am trying to set up Cloudinary with Active Storage in a Rails 7 app. After following the instructions on your site, I tried to reset and reseed my development database, which includes Active Storage Attachments. I am receiving the following error "ActiveStorage::IntegrityError: Error parsing…
-
Setting tags and retrieving pHash while using Active Storage (Rails)
Hello, 👋 I would like to know if there's a way to do the following : Set tags directly in the attach method (Active Storage) without making a second API call Something like @item.photos.attach(io: file, filename:filename, content_type: 'image', cloudinary{tags: ["dog","cat"]}) Retrieve the pHash for a photo directly from…
-
Using CDN for css with rails
Looking for some guidance on how to upload precompiled CSS files, managing the file names and automate the uploading and accessing of those assets via CDN on rails