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

validate rule for the asset fieldtype do not work #276

Open
shabbarabbas opened this issue Feb 3, 2018 · 0 comments
Open

validate rule for the asset fieldtype do not work #276

shabbarabbas opened this issue Feb 3, 2018 · 0 comments

Comments

@shabbarabbas
Copy link

if i set validation rules for the asset filed type like this

image_gallery: type: assets validate: required|image|mimes:jpeg,bmp,png display: Image Gallery instructions: Choose or upload an image for your Project, You can select multiple images up to 5. container: portfolio folder: / max_files: 5 restrict: true destination: assets/projects mode: grid
it keeps me giving error "The Image Gallery field must be an image.,The Image Gallery field must be a file of type: jpeg, bmp, png."
though i have select an image and it is png image

please help me how to setup the validation like image type or may be image min width or min height

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