Hello,
I have and image field into acf_form in front end.
I want only image 300×300, so I set up the image field with min & max as 300px.
When Im uploading a big one, the image is not saved because it doesn’t respect the size but no errors appear into the form.
The form looks valide but no image is saved.
Im looking for a plugin (or I will develop it) to crop image on acf_form to be sure we have the perfect size but while its done, I need to display a message to customer.
I find the way just following this :
https://www.advancedcustomfields.com/resources/acf-validate_value/
#ImStupid
So, noits still not working
https://www.advancedcustomfields.com/resources/acf-validate_value/
only work in back office.
on front office Im not able to get the ID of the uploaded image… 🙁
and no width/height validation has been done.
my field has min_max restriction :
[“min_width”]=>
int(300)
[“min_height”]=>
int(300)
[“min_size”]=>
string(0) “”
[“max_width”]=>
int(300)
[“max_height”]=>
int(300)
and its working in back office but not in front office
This is a know issue, or at least it has been brought up multiple times here, please contact the developer https://www.advancedcustomfields.com/contact/