mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 02:38:58 +00:00
* Add file.data.relativePath to the file.id * Don’t add/overwrite a file if a file with the same id already exsists, issue a warning * override @uppy/tus fingerprint to uppy’s file.id * combine cordove/react native handling, don’t log twice * always use onError for errors in addFile * use file.meta.relativePath instead of file.data.relativePath what do you think, @lakesare? * update tests to include allowing/diallowing duplicates and file.id generation with relativePath * update tus-js-client * refactor error handling for addFile and upload into a mutual _showOrLogErrorAndThrow method * explain duplicate files and relativePath * throw TypeError vs Error when allowedFileTypes is not an array * fix tests * tweak docs * Emit restriction-failed for all restriction errors, move it to _showOrLogErrorAndThrow |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/utils
Shared utility functions for Uppy Core and the "official" plugins maintained by the Uppy team.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Installation
Unless you are creating a custom plugin, you should not need to install this manually.
$ npm install @uppy/utils --save