This is a custom uploader project for ShareX Uploader
You need Composer for install this project with this command:
composer create-project nunopress/sharex-hosting-uploader project_name
The configuration file is into src/AppBundle/Resources/config/services.yml.
You need to change the app.secret and configure ShareX with the same secret key parameter.
You can change the value of app.upload_dir if you want the uploads in another directory,
from default this is configured into %kernel.root_dir%/../uploads (root directory + /uploads).
In ShareX you need to setup the Response Url with this format:
- URL:
http://yoursite.com/view/$json:filename$ - Thumbnail URL:
http://yoursite.com/thumb/$json:filename$ - Deletion URL:
http://yoursite.com/delete/$json:filename$
Remember to setup too the Arguments:
- Request type:
POST - Request URL:
http://yoursite.com/upload - File form name:
file - Arguments:
secret: Your secret key used intoapp.secretname: The filename format saved on the web server
Rename the file phpunit.xml.dist in phpunit.xml and run phpunit from the root folder.