在图片上传失败的时候,直接去看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配置对不对
因为有时候复制账户名称,路径这些会存在空格,其他符合之类。主要检查这些。