Selfhosted: Sticker & Emoji Max Size not considered for .gif

(#643) Bug Needs triage emoji self-hosting

Summary

After changing Sticker Max Size & Emoji Max Size in admin panel to a size I want (5MB), I'm still unable to upload stickers & emojis that are in GIF format and are above 512KB in filesize. It seems like a weird hard-coded limitation and I personally would expect this option to not be hardcoded to a set value if there's already an option to adjust the file sizes to whatever one desires. Large jpeg/webp/png files upload fine from my testing so it's just gifs specifically having this problem. Sticker and Emoji max file size is set to 5242880 bytes I've tried to resize those to 320x320 to see if maybe that's the problem but no, it's complaining about filesize specifically each time.

Steps to reproduce

  1. Set Sticker Max Size in Admin Dashboard -> Limit Config to any bigger value than normal ex. 5242880
  2. Try uploading any .gif file above 512KB as emoji or sticker

Logs or screenshots

image image image
  • 610076441-0faa2da5-0d0e-4012-9357-2e8751f1759a.png

    610076441-0faa2da5-0d0e-4012-9357-2e8751f1759a.png

    503×323 | 29 kB

  • 610080868-ae9be356-ad42-4733-89ca-40530101506c.png

    610080868-ae9be356-ad42-4733-89ca-40530101506c.png

    481×368 | 28 kB

  • 610079194-a9e6c164-d52f-4c1b-b2aa-fe5c9f999459.png

    610079194-a9e6c164-d52f-4c1b-b2aa-fe5c9f999459.png

    572×143 | 10 kB

3 comments

Sign in with Fluxer to comment and vote.
Comment by @ztx-lyghters
RexSystem 1 vote originally by @ztx-lyghters on GitHub
it's not just GIFs, this setting just simply does not work for me. The limit stays 512kb for any kind of file format, no matter what I set in the limits config. Both for stickers and emoji, any format.
Comment by @xfalc0
RexSystem 1 vote originally by @xfalc0 on GitHub
To add onto this issue, the limit is also held when attempting to pick KLIPY gifs for pfps and profile banners, which ultimately defeats the purpose of having that selection option available because most, if not all, gifs from KLIPY are larger than 512kb.
Comment by @Kenkoman
RexSystem 1 vote originally by @Kenkoman on GitHub
I am also observing all emoji and sticker uploading having a mandatory 512 KB limit despite the limit being raised in the admin panel, in the latest self-hosting release
Deleted comment
Removed by moderator Rex: Removed a general status note that was posted on many GitHub threads. It no longer applies here.