Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on A friendly error when trying to upload a profile picture more than 2 MB

Post

A friendly error when trying to upload a profile picture more than 2 MB

+6
−0

When you try to upload a profile photo with more than 2 MB, it will result in 413 request (Entity Too Large):

413 Request Entity Too Large

I don't think this is a friendly error, a more friendly would be:

Preview

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

2 Mb is absurd (3 comments)
2 Mb is absurd
Olin Lathrop‭ wrote over 2 years ago

This is somewhat of an aside, but 2 Mb is absurdly large to allow for a profile picture. It seems that the largest this picture is ever displayed at is 240 x 240 pixels on your profile page. Even completely uncompressed and 3 bytes/pixel, that only comes out to 0.17 Mb. There may be some point in allowing people to upload up to 512 x 512 pictures, but beyond that makes no sense.

It would be better to clearly spell out the requirements (pixel dimensions, aspect ratio) and have people upload an exact fit. That gets around unexpected artifacts due to inconvenient resizing, what to do with uncovered background, etc.

Kevin M. Mansour‭ wrote over 2 years ago

LOL! My profile photo is compressed. My original (very high quality) is 4 MB, tried to upload it but failed, so I used mine now which is 2 MB or 1 MB.

Tortliena‭ wrote over 2 years ago

I have 512x512 px JPG avatars (90% quality, still quite high), and they take each 150KB at the very most. In constrast, the PNG versions take 600KB. But it's simply because PNGs are lossless, so... So yeah, it's a weirdly high bar.