nunopress/sharex-hosting-uploader
Composer 安装命令:
composer create-project nunopress/sharex-hosting-uploader
包简介
ShareX custom uploader for your hosting/domain powered by Symfony Micro Edition
README 文档
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.secretname: 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.
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-12