This PHP script allows you to easily upload ShareX screenshots and videos. It includes token authentication for security and can handle various image file types by converting them to WebP format for efficient storage.
- Effortlessly upload screenshots to your website using ShareX.
- Automatically convert screenshots to WebP format.
- Docker (If using Docker installation method)
- ShareX
- Copy the
docker-compose.ymlfile to your server. - Edit the
docker-compose.ymlfile and change environment variables to what you need, and update./uploadsto where you want to store the files. - Run
docker-compose up -dto start the container. - Go to where the files are stored and edit the variables in
upload.phpto your liking. - Run
docker-compose restartto restart the container. - Go to Post Installation to configure ShareX.
- Install the container from Community Applications and then edit the variables in the container.
- Go to where the files are stored and edit the variables in
upload.phpto your liking. - Restart the container.
- Go to Post Installation to configure ShareX.
This installation method is not recommended as I cannot provide instructions for every single Linux distribution. If you don't know what you're doing, use the Docker installation method.
- Verify that your web server has the GD library installed. If not, run
sudo apt install php-gdto install it. - Upload the
upload.phpfile to your server. - Edit the
upload.phpfile to configure the script. - Go to Post Installation to configure ShareX.
- Open ShareX and go to Destinations > Custom Uploader Settings.
- Click on Import > From URL and enter
https://git.fascinated.cc/Fascinated/sharex-php-uploader/raw/branch/master/sharex.sxcu. - Edit the URL to your website's URL.
- Click on Test after you've edited the URL and it should return a URL. If it doesn't, check your settings or contact me.
If you require assistance, feel free to contact me via Discord at fascinated7.
This project is maintained on my Gitea instance: https://git.fascinated.cc/Fascinated/sharex-php-uploader