A custom PHP uploader used with ShareX.
-
Create a directory for uploads in the webroot with
mkdir i
and make sure that it has at least 755 permissions:chmod 755 i
. -
Change the owner and/or group of the upload directory to www-data (or equivalent) with
chown www-data:www-data i
-
Place the upload.php to the webroot (e.g. /var/www/example.com/upload.php) and the config.php to anywhere you like (just change the path in upload.php:
$config = include('config.php');
). -
Make sure that the max POST size is enough (e.g. in php.ini
post_max_size = 100M
) -
Open ShareX, click Destinations, click Destination Settings, scroll down until you find Custom uploaders and add a new uploader with the following settings: