uppy/packages/@uppy/utils
Artur Paikin e82ac0f137
core: Don’t add/overwrite existing files, allow duplicates from different folders (#1767)
* 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
2019-09-19 16:43:51 +03:00
..
src core: Don’t add/overwrite existing files, allow duplicates from different folders (#1767) 2019-09-19 16:43:51 +03:00
types getDroppedFiles.js: handle exceptions better (#1797) 2019-08-30 14:45:21 +03:00
LICENSE Add @uppy/utils skeleton. 2018-06-14 16:31:19 +02:00
package.json Release 2019-08-30 15:24:04 +03:00
README.md Add @uppy/utils skeleton. 2018-06-14 16:31:19 +02:00

@uppy/utils

Uppy logo: a superman puppy in a pink suit

Build Status

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

License

The MIT License.