1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Why can't I add a 1.1mb avatar?

Discussion in 'Troubleshooting and Problems' started by dehness, May 29, 2014.

  1. dehness

    dehness Active Member

    It keeps giving me an error, filesize too large. Even when I try to upload it from the AdminCP. Seems ridiculous that 1.1MB would be too large.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What have you set for maximum avatar size?

    It's a user group permission.
     
  3. dehness

    dehness Active Member

    I have it set as unlimited for my usergroup. It's an animated .gif if that makes a difference.
     
  4. Mike

    Mike XenForo Developer Staff Member

    What's the exact error that you're receiving?
     
  5. KillermanGabe

    KillermanGabe Member

    I don't think Animated Avatars are supported. Are they?
     
  6. Tracy Perry

    Tracy Perry Well-Known Member

    They are on my forums using imagemagick.
     
  7. Mike

    Mike XenForo Developer Staff Member

    They're still supported in that they're valid images -- you just get the first frame in GD.
     
  8. Clay Culver

    Clay Culver Member

    It could also be a PHP limitation it would be this line when viewing phpinfo

    Code:
    max_file_uploads2020
    
    The left value is local set and the right is the master set point. So this tells me I can upload a max of 20 MiB at a time.

    To see this value you can create a file called phpinfo.php and put it some where on your host. Use the following code inside of it

    Code:
    <?php
              phpinfo(); 
     ?>
    
     
  9. dehness

    dehness Active Member

    Sorry for only getting back to this now, and thanks for the help guys.

    Yes, the forum is using imagemagik and Xenforo 1.1. There are dozens of other members with animated avatars.

    This is the error I get when trying to upload via the Admin CP:
    413 Request Entity Too Large
     
  10. Mike

    Mike XenForo Developer Staff Member

    This is a limitation configured in your web server -- you host has limited the size of the request body. They would need to increase that.
     
    dehness likes this.
  11. Sheratan

    Sheratan Well-Known Member

    Are you using cpanel? you might change max_file_upload and post_max_size

    If you are using nginx, you might change client_max_body_size in nginx.conf
     
    dehness likes this.
  12. dehness

    dehness Active Member

    Thanks guys, I'm not the server admin so I'll have to speak with him about it.
     

Share This Page