PicGo's ImageFlow image hosting upload tool, developed by Jiaxiang Wang.
PicGo 的 ImageFlow 图床上传工具,由王嘉祥开发。
参数名 | 是否必填 | 描述 |
---|---|---|
URL |
是 | 服务器地址 |
API Key |
是 | API 密钥 |
Install via PicGo Core CLI
通过 PicGo Core 命令行安装
picgo add imageflow
Search for imageflow
in the GUI to download
GUI 直接搜索 imageflow
下载即可
In PicGo, follow the steps shown in the illustration to configure.
在 PicGo 中,按照图示步骤进行配置即可。
In PicGo, follow the steps shown in the illustration to upload. Note to switch to this plugin in Step 2
.
在 PicGo 中,按照图示步骤操作即可,注意在第二步
中切换本插件使用。
graph TD
A[Start 开始] --> B[Read Config File 读取配置文件]
B --> C[Build Form Parameters 构建表单参数]
C --> D[Assemble Request Headers 组装请求头]
D --> E[Transform File Array 转换文件数组]
E --> F[Send HTTP Request 发送HTTP请求]
F --> G{Success? 成功?}
G -- Yes 是 --> H[Parse URL Response 解析URL返回结果]
G -- No 否 --> I[Error Handling 错误处理]
H --> J[Update PicGo Album 更新PicGo相册]
I --> K[Show Error Message 显示错误提示]
Image upload requires API key authentication. You can:
图片上传功能需要 API 密钥认证。您可以:
- Add
Authorization
in the requestheader
, with the valueBearer <token>
.
在请求header
中添加Authorization
,值为Bearer <token>
。
接口 | 方法 | 描述 | 参数 | 认证 |
---|---|---|---|---|
/api/upload |
POST | 上传新图片 | Form 数据,字段名 images[] ,存放照片数组 可选参数: expiryMinutes (过期时间,分钟)可选参数: tags (标签数组) |
需要 API 密钥 |
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
欢迎提交 Pull Request。如需进行重大更改,请先打开 Issue 讨论您想要更改的内容。
Thanks to the following open-source projects for inspiration:
感谢以下开源项目提供灵感:
- https://github.com/foraixh/picgo-plugin-halo-uploader
- https://github.com/wayjam/picgo-plugin-s3
Released under the MIT License.
基于 MIT License 发布。