Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sme-uploader/tus

SME-AOMA22MIT1.0.1TypeScript support: included

Resumable uploads for SME Uploader using Tus.io

file uploader, uploader, sme-uploader, uploader-plugin, sme-uploader-plugin, upload, resumable, tus

readme

@sme-uploader/tus

SME Uploader logo Build Status

The Tus plugin brings tus.io resumable file uploading to SME Uploader by wrapping the tus-js-client.

Example

const SmeUploader = require('@sme-uploader/core');
const Tus = require('@sme-uploader/tus');

const uploader = new SmeUploader();
uploader.use(Tus, {
  endpoint: 'https://master.tus.io/files/', // use your tus endpoint here
  resume: true,
  autoRetry: true,
  retryDelays: [0, 1000, 3000, 5000]
});

Installation

$ npm install @sme-uploader/tus

We recommend installing from npm and then using a module bundler such as Parcel, Webpack or Browserify.

Alternatively, you can also use this plugin in a pre-built bundle from CDN. In that case SmeUploader will attach itself to the global window.SmeUploader object. See the main SME Uploader documentation for instructions.

Documentation

Documentation for this plugin can be found on the SME Uploader website.

License

The MIT License.