项目作者: bnkk
项目描述 :
ShareX Custom Uploader Tutorial
高级语言: PHP
项目地址: git://github.com/bnkk/ShareXCustomUploader.git
In this repository, you will find a single PHP file that you need to customize in order to set up a custom uploader properly.
Requirements
- A text editor such as VSCode, Sublime, or Notepad++. Regular Notepad is not the tool for this job.
- A web host that does not block JavaScript or check for it.
- ShareX Client.
Usage
This section will be formatted in a step by step process
- Download the “up.php” file from this repository and extract it out of the zip file
- Open the files in your text editor and you should see this:

- Please direct your attention to lines 2 through 5!

- On “$secret_key” change the value to a secure password that you’d like to use, it can also be random letters and numbers, as long as you can copy and paste.
- On “$sharexdir” you can leave this value blank.
- On “domain_url” change the value to the website URL where you plan on storing the up.php file.
- On “$lengthofstring” you can change the value if you want to but it is not required.
- After you edit these values, save and close this file.
- Next, put the file on your website using the same URL that you put on the “&domain_url” value.
- Open up ShareX and go to Custom Uploader settings
- Under “Uploaders” click add
- Set the name of the uploader to whatever you like, I called mine cdn
- Be sure that the request type is set to POST
- Set the Request URL to the web address where your up.php file is stored
- Set the file form name to “sharex”
- Add a new argument named “secret” and set the value to the secret key you have set in the up.php file
- When you’re finished, your configuration should look like this:

- Configuration is finished! Make sure you have ShareX set to use this custom uploader and it should work.
Questions
If you have any questions, feel free to email me at banko.production.network@gmail.com or create a new issue on this repository.