Files
EasyImages2.0/docs/使用ShareX上传.md
2023-02-12 22:48:30 +08:00

30 lines
910 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- 登录图床后台->图床安全->高级设置->开启API上传
- 下载[ShareX](https://getsharex.com/downloads/),然后打开目标->自定义上传目标->导入下面代码即可上传。
![使用ShareX上传](images/f54adf65a4ds56f.png)
- 需要注意,`RequestURL`需要替换成自己的域名token也需要修改成自己的
```ShareX
{
"Version": "13.5.0",
"Name": "简单图床API图片上传",
"DestinationType": "ImageUploader",
"RequestMethod": "POST",
"RequestURL": "https://png.cm/api/index.php",
"Body": "MultipartFormData",
"Arguments": {
"token": "8337effca0ddfcd9c5899f3509b23657"
},
"FileFormName": "image",
"URL": "$json:url$",
"ThumbnailURL": "$json:thumb$",
"DeletionURL": "$json:del$",
"ErrorMessage": "$json:message$"
}
```
![](images/ShareX_UwVwPnC3MJ.png)
- 上边设置好以后 设置为默认上传
![](images/ShareX_luVGfPaU9E.png)