项目作者: bnkk

项目描述 :
ShareX Custom Uploader Tutorial
高级语言: PHP
项目地址: git://github.com/bnkk/ShareXCustomUploader.git
创建时间: 2019-07-26T22:42:48Z
项目社区:https://github.com/bnkk/ShareXCustomUploader

开源协议:The Unlicense

下载


" class="reference-link">ShareX Custom Uploader PHP File php

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

  1. A text editor such as VSCode, Sublime, or Notepad++. Regular Notepad is not the tool for this job.
  2. A web host that does not block JavaScript or check for it.
  3. ShareX Client.

Usage

This section will be formatted in a step by step process

  1. Download the “up.php” file from this repository and extract it out of the zip file
  2. Open the files in your text editor and you should see this: up.php file
    1. Please direct your attention to lines 2 through 5!
      Lines 2-5
    2. 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.
    3. On “$sharexdir” you can leave this value blank.
    4. On “domain_url” change the value to the website URL where you plan on storing the up.php file.
    5. On “$lengthofstring” you can change the value if you want to but it is not required.
    6. After you edit these values, save and close this file.
    7. Next, put the file on your website using the same URL that you put on the “&domain_url” value.
    8. Open up ShareX and go to Custom Uploader settings
    9. Under “Uploaders” click add
    10. Set the name of the uploader to whatever you like, I called mine cdn
    11. Be sure that the request type is set to POST
    12. Set the Request URL to the web address where your up.php file is stored
    13. Set the file form name to “sharex”
    14. Add a new argument named “secret” and set the value to the secret key you have set in the up.php file
    15. When you’re finished, your configuration should look like this:
      ShareX custom uploader configuration
    16. 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.