PicGo + 阿里云图床上传失败解析

在图片上传失败的时候,直接去看PicGo的配置文件,上传失败就是你配置哪里有问题,因为服务器不可能出问题,你typora的软件也不可能出问题,出问题的就只有PickGo这个中间配置软件了。

其实就是一个json 配置文件:里面有需要的各种账户名称配置,服务器配置

{
  "PICGO_ENV": "GUI",
  "settings": {
    "shortKey": {
      "picgo:upload": {
        "enable": true,
        "key": "CommandOrControl+Shift+P",
        "name": "upload",
        "label": "快捷上传"
      }
    },
    "privacyEnsure": true,
    "showUpdateTip": false,
    "server": {
      "enable": true,
      "host": "127.0.0.1",
      "port": 36677
    },
    "checkBetaUpdate": false,
    "uploadNotification": true,
    "rename": true,
    "autoRename": false,
    "autoStart": true,
    "logLevel": [
      "all"
    ]
  },
  "needReload": false,
  "uploaded": [
    {
      "fileName": "image-20210729110047052.png",
      "width": 581,
      "height": 265,
      "extname": ".png",
      "imgUrl": "",
      "type": "aliyun",
      "id": "d84e4047-edf3-4673-b9ee-0cd5eac2cdbe"
    },
    {
      "fileName": "typora-icon2.png",
      "width": 1024,
      "height": 1024,
      "extname": ".png",
      "imgUrl": "https://twbucket.oss-cn-beijing.aliyuncs.com/typora-icon2.png",
      "type": "aliyun",
      "id": "b007f17e-e928-4bb5-aeed-066d142cb302"
    },
    {
      "fileName": "typora-icon.png",
      "width": 512,
      "height": 512,
      "extname": ".png",
      "imgUrl": "https://twbucket.oss-cn-beijing.aliyuncs.com/typora-icon.png",
      "type": "aliyun",
      "id": "8ad92914-7962-4885-a1bc-19982a26649b"
    }
  ],
  "picBed": {
    "current": "aliyun",
    "uploader": "aliyun",
    "aliyun": {
      "accessKeyId": "LTAI5tH5LhM1GWNBugrqxM5A",
      "accessKeySecret": "GBbZ0LHSNBdrXqt5h1lQi4oE5XZnpz",
      "area": "oss-cn-beijing",
      "bucket": "twbucket",
      "customUrl": "",
      "options": "",
      "path": ""
    },
    "list": [
      {
        "name": "SM.MS图床",
        "type": "smms",
        "visible": false
      },
      {
        "name": "腾讯云COS",
        "type": "tcyun",
        "visible": false
      },
      {
        "name": "GitHub图床",
        "type": "github",
        "visible": true
      },
      {
        "name": "七牛图床",
        "type": "qiniu",
        "visible": false
      },
      {
        "name": "Imgur图床",
        "type": "imgur",
        "visible": false
      },
      {
        "name": "阿里云OSS",
        "type": "aliyun",
        "visible": true
      },
      {
        "name": "又拍云图床",
        "type": "upyun",
        "visible": false
      }
    ],
    "gitee": {
      "message": "PictureBed",
      "owner": "TWWT",
      "path": null,
      "repo": "PicgoPictuerBed",
      "token": "a0201eda7a4ec8f9665f6d01dfefa7f2"
    }
  },
  "picgoPlugins": {
    "picgo-plugin-gitee": true
  },
  "debug": true
}

主要看两个地方,一个是你server的配置对不对,一个是picBed配置对不对

因为有时候复制账户名称,路径这些会存在空格,其他符合之类。主要检查这些。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值