You can use either Docker or run it directly with Node.js.
If you wish to do the latter, make sure to install Node from here and follow the instructions provided below:
npm install sharex-server
- Use the following code:
const Server = require("sharex-server");
new Server({
password: "password",
path: "images",
port: 6666,
fileLength: 10,
});
- The password is to be set as a header;
- The file form name is to be set to
image
; - The image uploading endpoint is /api/upload;
- The upload endpoint returns a JSON with a URL link;