GitHub 个人资料图片上传不起作用

leo*_*ess 3 firefox google-chrome github google-chrome-devtools

这是我在 GitHub 上尝试上传 ~1MB 图片作为个人资料图片时得到的响应:

POST https://github.com/upload/policies/avatars 422 (Unprocessable Entity)
Run Code Online (Sandbox Code Playgroud)
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"
Run Code Online (Sandbox Code Playgroud)

我从控制台和 Chrome DevTools Network 选项卡中获取此信息,因为绝对没有来自前端的反馈。这里可能有什么问题?我禁用了所有扩展并尝试了 Firefox,但问题仍然存在。

Lew*_*uce 5

根据 GitHub 的说法,他们的个人资料图片的最大文件大小为 1 MB,这就是为什么他们建议将其保持在 500x500 像素左右。不幸的是,他们的 UI 看起来并没有真正显示错误。