Updated sample and README to match ShareX v14 formatting

pull/138/head
tycrek 2 years ago
parent af2ad2c144
commit 8653598b0b
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

10
.github/README.md vendored

@ -226,11 +226,11 @@ In your Cloudflare DNS dashboard, set your domain/subdomain to **DNS Only** if y
- Name: `Authorization` - Name: `Authorization`
- Value: (the value provided by `npm start` on first run) - Value: (the value provided by `npm start` on first run)
5. **Response** tab: 5. **Response** tab:
- URL: `$json:.resource$` - URL: `{json:.resource}`
- Thumbnail: `$json:.thumbnail$` - Thumbnail: `{json:.thumbnail}`
- Deletion URL: `$json:.delete$` - Deletion URL: `{json:.delete}`
- Error message: `$response$` - Error message: `{response}`
- MagicCap users: **do not** include the `.` in the above (i.e. `$json:resource$`) - MagicCap users: **do not** include the `.` in the above & replace `{}` with `$` (i.e. `$json:resource$`)
6. The file `sample_config.sxcu` can also be modified & imported to suit your needs 6. The file `sample_config.sxcu` can also be modified & imported to suit your needs
### Header overrides ### Header overrides

@ -1,5 +1,5 @@
{ {
"Version": "13.4.0", "Version": "14.0.1",
"Name": "ass", "Name": "ass",
"DestinationType": "ImageUploader, TextUploader, FileUploader", "DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST", "RequestMethod": "POST",
@ -9,8 +9,8 @@
}, },
"Body": "MultipartFormData", "Body": "MultipartFormData",
"FileFormName": "file", "FileFormName": "file",
"URL": "$json:.resource$", "URL": "{json:.resource}",
"ThumbnailURL": "$json:.thumbnail$", "ThumbnailURL": "{json:.thumbnail}",
"DeletionURL": "$json:.delete$", "DeletionURL": "{json:.delete}",
"ErrorMessage": "$response$" "ErrorMessage": "{response}"
} }
Loading…
Cancel
Save