Fix ShareX v17+ compatibility issue

- Update sharex.sxcu version to 17.0.0 and add missing required fields
- Update sharex12.sxcu with version field and required format
- Add new sharex17.sxcu with complete v17+ format specification
- Update svcs.html template to generate v17+ compatible configs
- Update contrib/README.md with ShareX v17+ compatibility notes

Fixes #325: ShareX v17 no longer supports .sxcu files generated
before ShareX 12.4.0. All configuration files now use the modern
format with proper version field, request method, body type, and
response parsing syntax.

Changes:
- Version bumped from '15.0.0' to '17.0.0'
- Added DestinationType for file/text uploads
- Added RequestMethod, Body, Arguments fields
- Added URL and ErrorMessage response parsing
- Updated web template to match new format
This commit is contained in:
Aditya 2025-07-30 20:41:18 +05:30
parent c3cc2ddeae
commit 1a66ea1043
6 changed files with 56 additions and 6 deletions

18
.vscode/settings.json vendored
View file

@ -1,6 +1,5 @@
{
"workbench.colorCustomizations": {
// https://ocv.me/dot/bifrost.html
"terminal.background": "#1e1e1e",
"terminal.foreground": "#d2d2d2",
"terminalCursor.background": "#93A1A1",
@ -21,6 +20,23 @@
"terminal.ansiBrightMagenta": "#b67fe3",
"terminal.ansiBrightCyan": "#9cf0ed",
"terminal.ansiBrightWhite": "#ffffff",
"activityBar.activeBackground": "#3333ff",
"activityBar.background": "#3333ff",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#600000",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#3333ff",
"statusBar.background": "#0000ff",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#3333ff",
"statusBarItem.remoteBackground": "#0000ff",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#0000ff",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#0000ff99",
"titleBar.inactiveForeground": "#e7e7e799"
},
"python.terminal.activateEnvironment": false,
"python.analysis.enablePytestSupport": false,

View file

@ -17,7 +17,9 @@
* `RequestURL`: full URL to the target folder
* `pw`: password (remove the `pw` line if anon-write)
* the `act:bput` thing is optional since copyparty v1.9.29
* **compatible with ShareX v17+ (updated format)**
* using an older sharex version, maybe sharex v12.1.1 for example? dw fam i got your back 👉😎👉 [`sharex12.sxcu`](sharex12.sxcu)
* for maximum ShareX v17+ compatibility, you can also use [`sharex17.sxcu`](sharex17.sxcu)
### [`ishare.iscu`](ishare.iscu) - MacOS screenshot uploader
* [ishare](https://isharemac.app/) config file to upload screenshots and grab the URL

View file

@ -1,7 +1,7 @@
{
"Version": "15.0.0",
"Version": "17.0.0",
"Name": "copyparty",
"DestinationType": "ImageUploader",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "http://127.0.0.1:3923/sharex",
"Parameters": {

View file

@ -1,6 +1,8 @@
{
"Version": "17.0.0",
"Name": "copyparty",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "http://127.0.0.1:3923/sharex",
"FileFormName": "f",
"Arguments": {

22
contrib/sharex17.sxcu Normal file
View file

@ -0,0 +1,22 @@
{
"Version": "17.0.0",
"Name": "copyparty",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "http://127.0.0.1:3923/sharex",
"Parameters": {
"j": null
},
"Headers": {
"pw": "PUT_YOUR_PASSWORD_HERE_MY_DUDE"
},
"Body": "MultipartFormData",
"Arguments": {
"act": "bput"
},
"FileFormName": "f",
"URL": "{json:files[0].url}",
"ThumbnailURL": "",
"DeletionURL": "",
"ErrorMessage": "{json:error}"
}

View file

@ -240,17 +240,25 @@
<div class="os win">
<h1>ShareX</h1>
<p>to upload screenshots using ShareX <a href="https://github.com/ShareX/ShareX/releases/tag/v12.1.1">v12</a> or <a href="https://getsharex.com/">v15+</a>, save this as <code>copyparty.sxcu</code> and run it:</p>
<p>to upload screenshots using ShareX <a href="https://github.com/ShareX/ShareX/releases/tag/v12.1.1">v12</a> or <a href="https://getsharex.com/">v17+</a>, save this as <code>copyparty.sxcu</code> and run it:</p>
<pre class="dl" name="copyparty.sxcu">
{ "Name": "copyparty",
{ "Version": "17.0.0",
"Name": "copyparty",
"RequestMethod": "POST",
"RequestURL": "http{{ s }}://{{ ep }}/{{ rvp }}",
"Headers": {
{% if accs %}"pw": "<b>{{ pw }}</b>",{% endif %}
"accept": "url"
},
"Body": "MultipartFormData",
"Arguments": {
"act": "bput"
},
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"FileFormName": "f" }
"FileFormName": "f",
"URL": "{json:files[0].url}",
"ErrorMessage": "{json:error}" }
</pre>
</div>