@abhiriscott – sorry, don’t know the answer to that, I guess an insecure form in that particular plugin I mentioned but I can’t be specific.
Just answering my own question here… it was hitting a ModSec rule on the server that is in place to protect from a XSS vulnerability in a plugin called Modern Events Calendar Lite plugin 4.2.1 for WordPress – which I don’t use so server guys have disabled rule and it works now!
Hope this helps someone else sometime!
OK my bad, I was forgetting my namespacing!!!
Should have been:
add_filter('acf/upload_prefilter/name=unique_upload_image', '\App\my_acf_upload_prefilter');
However, although this now works, it’s still not displaying the error message I defined, it’s just saying ‘HTTP error’?
Any ideas?
Kev
Understood John! Appreciate your input, I have raised a support ticket and have had a response from Eliot who has also suggested using the filters to check the uploads so once I have completed my review, this will probably be on my list of actions!
Kevin
Hi John,
Do you mean that I should send a feature request via the support form for this in order to get the requirement assessed? If you’re saying that the Mime type is not currently checked, I’m not sure what raising a support ticket would achieve otherwise?
Thanks
Kevin
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.