I’m using an ACF form to submit posts, this includes an image field, is there a way to show an error if the image file size is over 2MB?
I’m looking at using acf/validate_value/
but I’m just unsure how you can return the image/file size
I found this post that talks about getting an attachment’s file size. It’s a couple of years old but it should still work. http://wordpress.stackexchange.com/questions/477/how-do-i-get-the-size-of-an-attachment-file