@sme-uploader/tus
v1.0.1
Published
Resumable uploads for SME Uploader using Tus.io
Downloads
18
Maintainers
Readme
@sme-uploader/tus
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.