update sharex example

This commit is contained in:
ed 2021-06-06 19:06:33 +02:00
parent d6a1e62a95
commit a891f34a93
3 changed files with 27 additions and 6 deletions

View file

@ -12,8 +12,12 @@
### [`sharex.sxcu`](sharex.sxcu) ### [`sharex.sxcu`](sharex.sxcu)
* sharex config file to upload screenshots and grab the URL * sharex config file to upload screenshots and grab the URL
* `RequestURL`: full URL to the target folder * `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$` * `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) ### [`explorer-nothumbs-nofoldertypes.reg`](explorer-nothumbs-nofoldertypes.reg)
* disables thumbnails and folder-type detection in windows explorer * disables thumbnails and folder-type detection in windows explorer

19
contrib/sharex-html.sxcu Normal file
View file

@ -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 // <a href=\"/([^\"]+)\""
],
"URL": "http://127.0.0.1:3923/$regex:1|1$"
}

View file

@ -5,15 +5,13 @@
"RequestMethod": "POST", "RequestMethod": "POST",
"RequestURL": "http://127.0.0.1:3923/sharex", "RequestURL": "http://127.0.0.1:3923/sharex",
"Parameters": { "Parameters": {
"pw": "wark" "pw": "wark",
"j": null
}, },
"Body": "MultipartFormData", "Body": "MultipartFormData",
"Arguments": { "Arguments": {
"act": "bput" "act": "bput"
}, },
"FileFormName": "f", "FileFormName": "f",
"RegexList": [ "URL": "$json:files[0].url$"
"bytes // <a href=\"/([^\"]+)\""
],
"URL": "http://127.0.0.1:3923/$regex:1|1$"
} }