Skip to content

Commit

Permalink
feat: Add DALEXNI (Image/Video Hosting) (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyHeaven authored Jan 12, 2025
1 parent 53f36b9 commit acf5733
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ This is also useful with [Typora](https://support.typora.io/Upload-Image/#image-
+ ImgBB
+ Cloudinary
+ EasyImage
+ DALEXNI

More: `./upgit ext ls`

Expand Down
1 change: 1 addition & 0 deletions docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
+ ImgBB
+ Cloudinary
+ EasyImage
+ DALEXNI

查看更多: `./upgit ext ls`

Expand Down
43 changes: 43 additions & 0 deletions extensions/dalexni.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"meta": {
"id": "dalexni",
"name": "DALEXNI Uploader",
"type": "simple-http-uploader",
"version": "0.0.1",
"repository": ""
},
"http": {
"request": {
// Get your api key from https://dalexni.com/settings/api
"url": "https://dalexni.com/api/1/upload",
"method": "POST",
"params": {
"key": "$(ext_config.key)"
},
"headers": {
"Content-Type": "multipart/form-data",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36"
},
"body": {
"key": {
"type": "string",
"value": "$(ext_config.key)"
},
"image": {
"type": "file_base64",
"value": "$(task.local_path)"
},
"format": {
"type": "string",
"value": "json"
}
}
}
},
"upload": {
"rawUrl": {
"from": "json_response",
"path": "data.url"
}
}
}

0 comments on commit acf5733

Please sign in to comment.