mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 03:08:34 +00:00
* don’t store file.data on local files when we save to localStorage, add isGhost: true, additional event restore-confirmed Co-Authored-By: Renée Kooi <github@kooi.me> * Don’t double-emit upload-started for Golden Retriever-restored files that were already started Co-Authored-By: Renée Kooi <github@kooi.me> * removeFile: delete updatedUploads[uploadID] instead of calling _removeUpload to avoide excess state updates Co-Authored-By: Renée Kooi <github@kooi.me> * clear preview, throttle saving state * add service message and ghost icons * regenerate thumnails on restore properly * allow replacing duplicate files if it’s a ghost * re-generate thumbnails on componentDidUpdate * tweak styles for ghosts * Dashboard cleanup * refactor: load IndexedDBStore and ServiceWorkerStore together, add uninstall, handle file-edit-complete * recoveredState — show upload button as “restore”, hide progress pause/resume, handle abortRestore * tweak serviceMsg mobile styles * use i18n for strings * Handle aborting, complete and last file removal with MetaDataStore.cleanup(instanceID) * fix all the tests * import .eslintrc from master * autofix * add lodash.throttle * when re-selecting ghost files, only replace the blob, keeping progress, meta, etc * Delete package-lock.json * Update en_US locale * add golden retriever support to darkmode styles * add golden retriever to website example * Update package-lock.json Co-authored-by: Renée Kooi <github@kooi.me> |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/tus
The Tus plugin brings tus.io resumable file uploading to Uppy by wrapping the tus-js-client.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Example
const Uppy = require('@uppy/core')
const Tus = require('@uppy/tus')
const uppy = new Uppy()
uppy.use(Tus, {
endpoint: 'https://tusd.tusdemo.net/files/', // use your tus endpoint here
resume: true,
autoRetry: true,
retryDelays: [0, 1000, 3000, 5000]
})
Installation
$ npm install @uppy/tus
We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.
Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.
Documentation
Documentation for this plugin can be found on the Uppy website.