Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ShareX settings #113

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": "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.
Same goes with the secret.