这是我尝试在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,但问题仍然存在。
答案 0 :(得分:1)
According to GitHub,其个人资料图片的最大文件大小为1 MB,这就是为什么他们建议将其保持在500x500像素左右的原因。不幸的是,看起来他们的UI并没有真正显示错误。