GitHub 无法上传个人资料图片
GitHub profile picture upload not working
这是我在 GitHub 上尝试上传 ~1MB 图片作为个人资料图片时得到的响应:
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"
我从控制台和 Chrome DevTools 网络选项卡中获取了这个,因为绝对没有来自前端的任何反馈。这里可能是什么问题?我禁用了所有扩展并尝试了 Firefox,但问题仍然存在。
According to GitHub,个人资料图片的最大文件大小为 1 MB,这就是为什么他们建议将其保持在 500x500 像素左右。不幸的是,他们的 UI 看起来并没有实际显示错误。
这是我在 GitHub 上尝试上传 ~1MB 图片作为个人资料图片时得到的响应:
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"
我从控制台和 Chrome DevTools 网络选项卡中获取了这个,因为绝对没有来自前端的任何反馈。这里可能是什么问题?我禁用了所有扩展并尝试了 Firefox,但问题仍然存在。
According to GitHub,个人资料图片的最大文件大小为 1 MB,这就是为什么他们建议将其保持在 500x500 像素左右。不幸的是,他们的 UI 看起来并没有实际显示错误。