nunopress / sharex-hosting-uploader
ShareX custom uploader for your hosting/domain powered by Symfony Micro Edition
Installs: 76
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=7.0.12
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/symfony: ^3.1
Requires (Dev)
- phpunit/phpunit: ^5.6
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
README
This is a custom uploader project for ShareX Uploader
Installation
You need Composer for install this project with this command:
composer create-project nunopress/sharex-hosting-uploader project_name
Configuration
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.secret
name
: The filename format saved on the web server
Testing
Rename the file phpunit.xml.dist
in phpunit.xml
and run phpunit
from the root folder.