PicGo Failed to Upload Images to Github Repository

Posted by JoyLee on February 2, 2026

Background

When writing notes and blogs with Markdown, I use PicGo to upload images to a Github repository and generate image links. This allows images to be accessed and synced anywhere without restrictions.

Problem Analysis

Recently, I discovered that uploading images to Github via PicGo consistently fails, as shown in the image below. The upload progress bar turns red. PicGo Upload Failed I checked my Github image bed settings and discovered the issue: my configured Token had expired on November 28, 2025, as shown below. Without a valid token, PicGo lacks permission to access my Github repository. Github Image Bed Configuration Github Token Expired

Solution

The solution is straightforward: generate a new Token in Github and update it in PicGo’s Github settings.

For detailed steps on generating a new Token, refer to this article: https://zhuanlan.zhihu.com/p/1889726474673690179

After updating the new Token in PicGo, image uploads work perfectly! 🎉

Note: If the token doesn’t have permanent validity, it will expire again over time. Consider setting a calendar reminder for the expiration date to regenerate a new token when needed.