From a891f34a931c38ff5d9b64abb8716ac678fb8d0b Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 6 Jun 2021 19:06:33 +0200 Subject: [PATCH] update sharex example --- contrib/README.md | 6 +++++- contrib/sharex-html.sxcu | 19 +++++++++++++++++++ contrib/sharex.sxcu | 8 +++----- 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 contrib/sharex-html.sxcu diff --git a/contrib/README.md b/contrib/README.md index ffc922e0..0df42b5b 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -12,8 +12,12 @@ ### [`sharex.sxcu`](sharex.sxcu) * sharex config file to upload screenshots and grab the URL * `RequestURL`: full URL to the target folder +* `pw`: password (remove the `pw` line if anon-write) + +however if your copyparty is behind a reverse-proxy, you may want to use [`sharex-html.sxcu`](sharex-html.sxcu) instead: +* `RequestURL`: full URL to the target folder * `URL`: full URL to the root folder (with trailing slash) followed by `$regex:1|1$` -* `pw`: password (or remove `Parameters` if anon-write) +* `pw`: password (remove `Parameters` if anon-write) ### [`explorer-nothumbs-nofoldertypes.reg`](explorer-nothumbs-nofoldertypes.reg) * disables thumbnails and folder-type detection in windows explorer diff --git a/contrib/sharex-html.sxcu b/contrib/sharex-html.sxcu new file mode 100644 index 00000000..3292b6f2 --- /dev/null +++ b/contrib/sharex-html.sxcu @@ -0,0 +1,19 @@ +{ + "Version": "13.5.0", + "Name": "copyparty-html", + "DestinationType": "ImageUploader", + "RequestMethod": "POST", + "RequestURL": "http://127.0.0.1:3923/sharex", + "Parameters": { + "pw": "wark" + }, + "Body": "MultipartFormData", + "Arguments": { + "act": "bput" + }, + "FileFormName": "f", + "RegexList": [ + "bytes //