Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be easier to use Cloudinary as a storage option for ActiveStorage #1617

Open
jagthedrummer opened this issue Jul 17, 2024 · 0 comments

Comments

@jagthedrummer
Copy link
Contributor

jagthedrummer commented Jul 17, 2024

Currently we use the presence of CLOUDINARY_URL to determine whether images should use ActiveStorage or the Cloudinary JS widget for uploads. In a vanilla Rails app it's possible to setup Cloudinary to be the back end storage option for ActiveStorage. One reason you might want to do this is that provisioning the Cloudinary add-on is easier than provisioning an S3 bucket and getting all of the settings just right (IAM, CORS, etc...).

We probably need a more explicit trigger so that a developer could have CLOUDINARY_URL set but still opt in to the ActiveStorage style image handling with Cloudinary as the storage location.

Ideally if we can make this work it would:

  • Allow uploads to go directly to Cloudinary instead of going through the application server
  • Bypass ActiveStorage analysis (maybe optionally)
  • Allow use of Cloudinary image delivery/manipulation directly (via cl_image_tag and cloudinary_url) instead of relying on ActiveStorage representations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant