Frontend upload avatar max file size exceeded message
-
Hi,
I’m using a frontend edit profile template (manual code, no plugin). When a user exceeds the avatar file size limit it returns the following message in an empty page instead of an alert message on the edit profile page: “The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form”.
In my profile template I have:
do_action('edit_user_avatar',$current_user);
And in my functions.php I have:
if(!is_admin()){ add_action('edit_user_avatar', array('wp_user_avatar', 'wpua_action_show_user_profile')); add_action('edit_user_avatar', array('wp_user_avatar', 'wpua_media_upload_scripts')); }
I think that a more user-friendly message should appear in the same edit profile page so is there anything wrong with my code? Thnx!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Frontend upload avatar max file size exceeded message’ is closed to new replies.