ShareX on Windows
Screenshots, screen recordings, text and files from ShareX to your server, plus its link shortener.
Use a current ShareX (version 17 or newer). It reads custom uploader files (.sxcu) with a double click.
1. Make an uploader on your server
- Sign in to your server and open Settings > Uploaders, then Add uploader.
- Pick ShareX, give it a name you'll recognize, and check the folder, visibility and link style. The defaults are fine.
- The next page has these same steps with your server and token already filled in. The token is shown once, so copy it or download the files now.
The snippets below use https://drive.example.com and stu_YOUR_UPLOADER_TOKEN. Swap in your own if you set things up by hand.
Leave Also shorten links on if you want ShareX's URL shortener to make short links on your server. You get a second file for that.
2. Add it to ShareX
- Download the uploader file and double click it. ShareX asks whether to make it your default image, text and file uploader: say Yes.
- If you turned on short links, download the link shortener file and double click it too.
- Take a screenshot (Ctrl+Print Screen selects an area by default). When the upload is done, the link is on your clipboard.
- To check or change it later: Destinations > Custom uploader settings.
The files, by hand
Save this as drive.example.com.sxcu and double click it. Text you upload lands as a .txt file (Markdown stays .md) and opens with highlighting.
{
"Version": "17.0.0",
"Name": "Stavo (drive.example.com)",
"DestinationType": "ImageUploader, TextUploader, FileUploader",
"RequestMethod": "POST",
"RequestURL": "https://drive.example.com/api/v1/upload",
"Headers": { "Authorization": "Bearer stu_YOUR_UPLOADER_TOKEN" },
"Body": "MultipartFormData",
"FileFormName": "file",
"URL": "{json:url}",
"ThumbnailURL": "{json:thumbnail_url}",
"DeletionURL": "{json:deletion_url}",
"ErrorMessage": "{json:error}"
}The link shortener is a separate file. ShareX puts the long link in {input}:
{
"Version": "17.0.0",
"Name": "Stavo short links (drive.example.com)",
"DestinationType": "URLShortener",
"RequestMethod": "POST",
"RequestURL": "https://drive.example.com/api/v1/links",
"Headers": { "Authorization": "Bearer stu_YOUR_UPLOADER_TOKEN" },
"Body": "FormURLEncoded",
"Arguments": { "url": "{input}" },
"URL": "{json:url}",
"ErrorMessage": "{json:error}"
}Overrides
The uploader's settings on your server apply to everything ShareX sends. To change them for one config, add Arguments in Custom uploader settings:
visibility:public,unlistedorprivatelink:pageordirectfolder: a path in My Drive, likeScreenshots/Games(made if missing)
ShareX sends each file in one request. Behind a Cloudflare Tunnel, files over 100 MB fail; see big files.