Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub profile picture upload not working

This is the response I get when trying to upload a ~1MB picture as a profile picture on GitHub:

POST https://github.com/upload/policies/avatars 422 (Unprocessable Entity)
errors: [{resource: "Avatar", code: "custom", field: "size", message: "size is not included in the list"}]
    0: {resource: "Avatar", code: "custom", field: "size", message: "size is not included in the list"}
        code: "custom"
        field: "size"
        message: "size is not included in the list"
        resource: "Avatar"

I took this from the Console and the Chrome DevTools Network Tab as there is absolutely no feedback from the front-end whatsoever. What could be the issue here? I disabled all extensions and tried Firefox but the issue persisted.

like image 439
leonheess Avatar asked Sep 06 '25 17:09

leonheess


1 Answers

According to GitHub, their maximum file size for profile pictures is 1 MB which is why they recommend keeping it at around 500x500 pixels. Unfortunately, it doesn't look like their UI actually displays the error.

like image 156
LewlSauce Avatar answered Sep 10 '25 05:09

LewlSauce