Skip to content

Instantly share code, notes, and snippets.

@ArsenArsen
Last active April 26, 2020 02:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArsenArsen/0e81be68da5a9dc9adbb16425fec4aa4 to your computer and use it in GitHub Desktop.
Save ArsenArsen/0e81be68da5a9dc9adbb16425fec4aa4 to your computer and use it in GitHub Desktop.
owo uploader for KShare

Put the following into the $SETTINGS_DIR/uploaders/whats-this.uploader and restart
You can access settings directory through the button on the settings window

$SETTINGS_DIR is:
Unix: $HOME/.config/KShare OR $XDG_CONFIG_DIR/KShare
Windows: C:/Users/<USER>/AppData/Local
MacOS: ~/Library/Preferences
{
"name": "owo",
"desc": "owo",
"target": "https://api.awau.moe/upload/pomf?key=<<<<INSERT YOUR KEY HERE>>>>",
"format": "multipart-form-data",
"body": [
{
"__Content-Type": "/%contenttype/",
"filename": "/image.%format/",
"name": "files[]",
"body": "/%imagedata/"
}
],
"return": ".files.0.url",
"return_prepend": "https://<<<<INSERT YOUR DOMAIN HERE>>>>/"
}
@NahuLD
Copy link

NahuLD commented Apr 26, 2020

For multiple domains use:
%(domain1|domain2|domain3|...)random on "return_prepend"

It'll return a random one from the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment