Hi,
I have a front-end image upload form in my website which had worked fine, but is now experiencing problems.
In the form config, I have the minimum dimensions set to 900px. During upload any image less than 900px is prevented from being uploaded, but no error message is displayed and the success message is shown, leading users to believe their image has been uploaded when it hasn’t.
This only happens on the front end. Back end admin upload displays the error message.
I have tried switching to a default theme and deactivating all other plugins and get the same results.
I am using this code:
$new_post= array(
‘post_id’ => ‘user_’.$current_user->ID,
‘field_groups’ => array(8506),
‘form’ => true,
‘return’ => add_query_arg( ‘updated’, ‘true’, get_permalink() ),
‘html_before_fields’ => ”,
‘html_after_fields’ => ”,
‘submit_value’ => ‘Upload Logo’,
‘updated_messag’ => ‘Saved!’
);
acf_form( $new_post);
The file type validation works perfectly. It is just the dimensions that is a problem. Any ideas? Thanks.