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

ActiveAdmin and active_storage_validations #95

Open
PSM8493 opened this issue Dec 18, 2020 · 1 comment
Open

ActiveAdmin and active_storage_validations #95

PSM8493 opened this issue Dec 18, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@PSM8493
Copy link

PSM8493 commented Dec 18, 2020

This Gem is great. i'm using it for a front end form which is perfect.

I'm also using it for the Admin part of my App using activeadmin gem.

I get validation error message in ActiveAdmin but it saves the file and ignores the validations

validates :images, content_type: ['image/png', 'image/jpg', 'image/jpeg'], limit: { min: 1, max: 2, message: 'You are allowed a maximum of 2 attachments' }, size: { less_than: 200.kilobytes , message: 'The attachment(s) must be less than 200kb' }

Would be great if you could give some pointers. Really stuck :-(
This is a similar issue with another gem

aki77/activestorage-validator#1

Thank you

@igorkasyanchuk igorkasyanchuk added the help wanted Extra attention is needed label Dec 18, 2020
@igorkasyanchuk
Copy link
Owner

Sorry, can't help now with this issue. I'm not a fan of ActiveAdmin and never used it. Maybe you can contribute to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants