nunopress/sharex-hosting-uploader

ShareX custom uploader for your hosting/domain powered by Symfony Micro Edition

v1.1.5 2017-01-05 13:52 UTC

This package is not auto-updated.

Last update: 2024-09-24 15:15:06 UTC


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 into app.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.