An emberized wrapper for the tus.js client: https://github.com/tus/tus-js-client Based on the tus.io protocol: https://tus.io/
- Ember.js 3.9
ember install ember-cli-tus
Addon-Docs: https://oaganalytics.github.io/ember-cli-tus/versions/master/
Just add the tus
service to any route/controller/component and pass a browser File
Object to the tus.createUpload
or tus.startNewUpload
method. Uploads are tracked on the
tus.uploads
property.
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import config from 'ember-get-config';
export default class Index extends Controller {
@service tus;
@action
uploadFile(e) {
this.tus.startNewUpload(e.target.files[0]);
}
}
See the Contributing guide for details.
This project is licensed under the MIT License.