Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bedita/tus
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bedita/tus
- Owner: bedita
- License: lgpl-3.0
- Created: 2021-02-03T18:11:36.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T13:26:31.000Z (over 1 year ago)
- Last Synced: 2024-04-26T21:04:08.888Z (8 months ago)
- Language: PHP
- Size: 49.8 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.LGPL
Awesome Lists containing this project
README
# Tus plugin for BEdita
This plugin enable BEdita API to use [tus](https://tus.io/) protocol to upload files and create associated BEdita media object types.
## Installation
You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).
The recommended way to install composer packages is:
```
composer require bedita/tus
```## Configuration
The `config/config.php` contains the configurations needed.
## Usage
By default the plugin exposes a route `/tus` (configurable via `endpoint` key) on which the tus server will respond.
The client must send a tus request to `/tus/{type}` where `{type}` is the object type that you want
associate to the file uploaded.
The upload request must contain a bearer authorization header as expected from BEdita API.At the end of the upload a BEdita object `{type}`will be created and the tus response will be decorated
with the headers```
BEdita-Object-Id:
BEdita-Object-Type:
```containing the BEdita object id and type.