- Minimal PHP Version: 8.0
- PHP Extenstions:
- pdo_sqlite
- mod_rewrite
- Webserver with .htaccess enabled
- Git installed on you're Server
- Clone the Project to you're Webserver
git clone https://github.com/Vozodo/ShareX-custom-URL-shorter
- Open index.php and Change the Settings
- Go to Destinations > Custom uploader settings...
- Click on New and give the uploader a name, e.g. phpshorter.
- For the Destination type select URL shortener
- The method must be POST
- For the Request URL enter the URL to your web server
- Under the Body, select "Frome data (multipart/form-data)" from the dropdown list.
- In the table below write two entries:
Name | Value |
---|---|
url | {input} |
secret | YOUR SET PASSWORD |
- For the file form name enter
sharex
At the bottom left you can select the uploader you want to create in the URL shortener. Click on Test. A new window will open and if everything worked, it will return a shortened link.