• Resolved SrSolano

    (@srsolano)


    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!

    http://wordpress.org/plugins/wp-user-avatar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m using the simplest error handling that WP provides, but it’s a good idea to make it more integrated into the profile page. I’ll add that as something to put in the next version of the plugin.

    Thread Starter SrSolano

    (@srsolano)

    Thanks Bangbay! That would be great for frontend purposes.

    BTW great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Frontend upload avatar max file size exceeded message’ is closed to new replies.