mirror of
https://github.com/stoatchat/for-web.git
synced 2026-07-20 23:03:46 -04:00
Bug: User Profile Photo unable to save #528
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bkweber99 on GitHub (Feb 14, 2026).
Overview
When attempting to save a photo for user profile, photo reverts to default.
Steps to reproduce
Actual Behavior
Expected Behavior
@chrishultin commented on GitHub (Feb 14, 2026):
Can you provide some additional details on the file you're trying to use for your new profile picture? What file type, size, and dimensions?
@bkweber99 commented on GitHub (Feb 14, 2026):
My fault, should've uploaded the file. I tried a couple of differnet ones, just JPGs 1920x1080.
@chrishultin commented on GitHub (Feb 14, 2026):
It seems like the maximum file size is 4MB, and the client doesn't properly display an error if the image is larger than that.
@chrishultin commented on GitHub (Feb 14, 2026):
API responds with:
{ "type": "FileTooLarge", "max": 4000000, "location": "crates/services/autumn/src/api.rs:208:20" }@bkweber99 commented on GitHub (Feb 14, 2026):
File size is 397KB. I was able to upload as a server profile pic, but not user.
@chrishultin commented on GitHub (Feb 14, 2026):
If you look, though, your pic is 406,984 bytes - the limit is 400,000 bytes
@bkweber99 commented on GitHub (Feb 14, 2026):
So the max size would be 0.4MB then, not 4MB? Per the API response limit is 4MB - 4,000,000
Same issue with this file as well, which is only 14,712 bytes
@HugoTNMilan commented on GitHub (Feb 14, 2026):
Hi, I tried with a ~180Kb png file (184, 320 bytes), and have the same issue.
@chrishultin commented on GitHub (Feb 14, 2026):
Crud, you're right - I misread the number, it's 4,000k - gotta be something else going on
@World170 commented on GitHub (Feb 14, 2026):
Try to set it on
old.stoat.chator the old revolt client (https://app.revolt.chat/).@bkweber99 commented on GitHub (Feb 14, 2026):
Looks like it requires a restart to show. Web app showed, and when I restarted the Desktop app it shows correctly.
Restarting the Desktop app shows the correct Profile picture.
@World170 commented on GitHub (Feb 14, 2026):
Oh well, atleast it sorta works. I've seen other users report this same exact issue (on servers inside of Stoat) so its pretty common, i hope they fix it soon with the new architecture / hotfix they have planned.