From 26fd5411561b29919fd33b0cecdee5435d9245a4 Mon Sep 17 00:00:00 2001 From: Alessio DS Date: Sat, 18 May 2024 17:30:49 +0200 Subject: [PATCH 1/2] Added ShareX settings --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 379622b..eeabebb 100644 --- a/README.md +++ b/README.md @@ -177,3 +177,26 @@ Migrating ddrive v3 to v4 is one way process once you migrate ddrive to v4 and a Feel free to create [new issue](https://github.com/forscht/ddrive/issues/new) if it's not working for you or need any help. [Discord Support server](https://discord.gg/3TCZRYafhW) + +## ShareX settings +You may use the following script, by saving it as a .sxcu file and importing it to ShareX: +``` +{ + "Version": "16.1.0", + "Name": "DDrive", + "DestinationType": "ImageUploader, TextUploader, FileUploader", + "RequestMethod": "POST", + "RequestURL": "http://ddrive-hostname/api/files/FILL_WITH_YOUR_TOKEN", + "Headers": { + "Authorization": "Basic YWRtaW46YWRtaW4=" + }, + "Body": "MultipartFormData", + "Arguments": { + "secret": "FILL_WITH_YOUR_SECRET" + }, + "FileFormName": "file", + "URL": "{responseurl}/{filename}" +} +``` +Note: if you changed the admin:admin settings, you should update the "Authorization" field accordingly, by encoding username:password in Base64. +Same goes with the secret. From 683a0c2fe847fd5b02288c6fece2b0581f021b98 Mon Sep 17 00:00:00 2001 From: Alessio DS Date: Sun, 19 May 2024 18:21:28 +0200 Subject: [PATCH 2/2] ShareX update Now supports direct download links --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eeabebb..1e5fdbb 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ You may use the following script, by saving it as a .sxcu file and importing it "secret": "FILL_WITH_YOUR_SECRET" }, "FileFormName": "file", - "URL": "{responseurl}/{filename}" + "URL": "http://ddrive-hostname/api/files/{json:id}/download" } ``` Note: if you changed the admin:admin settings, you should update the "Authorization" field accordingly, by encoding username:password in Base64.