Home › Forums › Add-ons › Gallery Field › Server-Side Validation for Image and Gallery Fields › Reply To: Server-Side Validation for Image and Gallery Fields
Hi!
Thank you for sharing this workaround, but this really shouldn’t be the official way to handle it.
The Gallery field still has a “Allowed file types” (mime_types) setting option in the field configuration. It makes no sense for server-side validation to hardcode an image check while completely ignoring this field setting, or at least without providing a native filter to override it.
This completely breaks existing enterprise setups where galleries are used for document bundles (like PDFs, brochures, etc.).
I’m stuck on version 6.8.6 for now to avoid breaking client sites. I’ve also opened a ticket with support—hopefully, they will address this regression properly in an upcoming release.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.