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

Ability to prevent thumbnails for attachments #3646

Open
meeoh opened this issue Sep 19, 2023 · 0 comments
Open

Ability to prevent thumbnails for attachments #3646

meeoh opened this issue Sep 19, 2023 · 0 comments

Comments

@meeoh
Copy link

meeoh commented Sep 19, 2023

Is your feature request related to a problem? Please describe.
I have a model that has_many_attached some files. Those files are also encrypted. When an image is uploaded to that field and rails_admin tries to display the thumbnail, its using the resize variant which throws an error for encrypted files.

Describe proposed solution(s)
The ability to prevent images trying to be displayed for a certain field. If I can override image? or resource_url in the ActiveStorageAttachment class here that would allow me to disable showing images at all for this field and instead just show text which links to the document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant