Advertisement:

Author Topic: Avatar size restrictions  (Read 2892 times)

Offline Mladek

  • Semi-Newbie
  • *
  • Posts: 13
Avatar size restrictions
« on: December 17, 2009, 03:51:49 PM »
Hello!
I have a problem with user avatars being too large. Example: anyone can upload animated gif 1.5Mb as his/her avatar despite my setting "Max size per attachment" is 128k (and i cant find restrictions to the avatar sizes themselves).

I have SMF version 1.1.11. Other settings:

Attachment Settings:
  • Attachments mode: enable all attachments
  • Check attachment's extension:    no
  • Allowed attachment extensions: doc,gif,jpg,mpg,pdf,png,txt,zip   
  • Attachments directory:    ...
  • Max attachment folder space:    10240 KB <- remember this
  • Max attachment size per post:    192 KB
  • Max size per attachment:    128 KB
  • Max number of attachments per post: 4

Uploadable avatars:
  • Maximum width of uploaded avatar: 100
  • Maximum height of uploaded avatar: 100
  • Resize oversized large avatars: no
  • Upload avatars to... Attachment directory

File Attachment Statistics:
  • Total Size of Attachment Directory:   22300.1 KB <-  ???
  • Total Space Available in Attachment Directory:   0 KB

Looks like it is possible to upload avatar to the "full" attachment directory? Seems strange.
So i repeat: if any user will try to upload large (>1Mb) animated gif 100x100, user will succeed. How can i restrict max avatar size?

Thank you for your help!

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,915
Re: Avatar size restrictions
« Reply #1 on: December 17, 2009, 05:15:53 PM »
Hi Mladek,

Set Resize oversized avatars : yes

Also, recommend disallow avatars from being uploaded from external URL's
SMF v2.0.7   Mods : Embed BBCode 1.8 , Custom Tab v1.2 , Dozen Pages v1.2 , Customize child board v2.7 ,

Offline Mladek

  • Semi-Newbie
  • *
  • Posts: 13
Re: Avatar size restrictions
« Reply #2 on: December 18, 2009, 02:26:12 AM »
I tryed  Resize oversized avatars : yes and it didnt change anything. Btw i'm talking about uploaded avatars (from local hard drive), not about external ones. Why should i dissallow it anyway?

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,977
  • Gender: Male
    • Southern Spirit Hunters
Re: Avatar size restrictions
« Reply #3 on: December 23, 2009, 11:09:44 PM »
Welcome to SMF.

Have you changed your avatar size recently?  It seems that once someone has selected an avatar, it doesn't continually check so if you changed the size and someone already had one that was too large, the restriction would not affect them.
Jim "JimM" Moore
Former Support Specialist
jimm@simplemachines.org

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods