Answer a question

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.

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.

Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐