A ShareX API That can be used to upload text files, images, video's and much more.
Copy The Settings from the picture shown below
- Download The sharex-api.php file located within this github project.
- Open the PHP File, Configure the settings to your needs.
- Upload the PHP File to your webserver.
ShareX-API Uses the POST Method for submitting data, so make sure all requests are sent as POST requests.
If you are returned with just your url that you uploaded, this means that the upload was a success.
This Means the master key for the sharex-api Is Invalid, you should recheck the key set in the php file.
This Means the data was not successfully transfered, Most likely corrupted or just in general packet-loss
This Means the data being uploaded to the server Is Too large, try settings $config["max_upload_size"] abit higher.
This Means the extension you are trying to upload Is not on the whitelist. you can add to the extension whitelist at the top of your api php file ($config["allowed"]). Alternately, you can use the key to bypass the filetype check
This Means the file cannot be moved to the destination, try setting the folder you wish to move the images to, to 777 (All Access Rights)
This Means the uploader encountered an odd error to where no errors were found, but the data could not be submitted.