Skip to content

Custom upload interface plugin based on picgo development. 基于 picgo 开发的自定义上传接口插件.

License

Notifications You must be signed in to change notification settings

Layouwen/picgo-plugin-custom-api-uploader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

picgo-plugin-custom-api-uploader

picog 插件, 可以自定义 api 接口上传图片

安装

方式一(推荐)

打开 PicGo 详细窗口, 选择插件设置, 搜索 custom-api-uploader 安装, 然后重启应用即可。

方式二(推荐)

下载压缩包, 解压到桌面, 然后打开 PicGo 详细窗口, 选择插件设置, 选择 安装本地插件, 选择解压的文件夹, 然后重启应用即可。

方式三

克隆该项目,复制项目到以下目录:

Windows: %APPDATA%\picgo\ Linux: $XDG_CONFIG_HOME/picgo/ or ~/.config/picgo/ macOS: ~/Library/Application\ Support/picgo/

切换到新目录执行 npm install ./picgo-plugin-custom-api-uploader, 然后重启应用即可。

配置

配置项 说明 必填
图床上传API地址 例如: https://api.example.com/upload
接口图片参数名 例如: imgName
返回值取值路径 例如: data.url
自定义 headers 例如: {"token":"xxxxxxxxxx"}
jsonPath 前缀拼接 jsonPath 字段返回值前缀拼接
自定义 Body 例如: {"key":"value"}

图床示例

16 图床

16 图床网页上传

配置项
图床配置名 Default
API地址 https://i.111666.best/image
接口图片参数名 image
返回值取值路径 src
自定义 headers {"Auth-Token":"改成你自己的唯一值"}
jsonPath 返回值前缀拼接 https://i.111666.best/

相关项目

  • PicGo - 🚀A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder

About

Custom upload interface plugin based on picgo development. 基于 picgo 开发的自定义上传接口插件.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%