Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.
GNU General Public License v3.0
588 stars 35 forks source link

issue with sxcu #67

Open laniku opened 3 years ago

laniku commented 3 years ago

I've tried to upload images using an sxcu with the command: sharenix -upload Screenshot\ 2021-05-14\ 10.47.32.png, and I keep getting this error:

Uploading file to sxcu.net - lucasp.reeee.ee
URL: (jsonpath not found)
Thumbnail URL: (jsonpath not found)
Deletion URL: (jsonpath not found)
Request failed: (jsonpath not found)

This is my config:

{
  "DefaultFileUploader": "uguu.se",
  "DefaultImageUploader": "sxcu.net - lucasp.reeee.ee",
  "XineramaHead": 0,
  "NotificationTime": 30,
  "NotifyUploading": true,
  "NotifyCommand": "",
  "ClipboardTime": 5,
  "SaveFolder": ".local/share/sharenix",
  "OrganizedFolders": false,

  "Services": [
    {
      "Name": "uguu.se",
      "RequestType": "POST",
      "RequestURL": "https://uguu.se/api.php?d=upload-tool",
      "FileFormName": "file"
    },
    {
      "Name": "sxcu.net - lucasp.reeee.ee",
      "DestinationType": "ImageUploader",
      "RequestURL": "https://lucasp.reeee.ee/upload",
      "FileFormName": "image",
      "URL": "$json:url$",
      "ThumbnailURL": "$json:thumb$",
      "DeletionURL": "$json:del_url$"
    }
  ]
}

The service does not have an outage at the moment.

hikaruisasleep commented 3 years ago

add this line inside the sxcu block: "RequestType": "POST",