uppy/packages/@uppy/utils
Mikael Finstad 876f833bd1
Companion: Use GET instead of HEAD for getURLMeta + Cut off length of file names (#3048)
* rewrite to async/await

* Only fetch size (HEAD) if needed #3034

* Update packages/@uppy/companion/src/server/controllers/url.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Change HEAD to GET in getURLMeta

and abort request immediately upon response headers received
https://github.com/transloadit/uppy/issues/3034#issuecomment-908059234

* fix lint

* fix lint

* cut off length of file names

or else we get
"MetadataTooLarge: Your metadata headers exceed the maximum allowed metadata size" in tus / S3

* try to fix flaky test

* remove iife and cleanup code a bit

* fix lint by reordering code

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 17:27:13 +07:00
..
src Companion: Use GET instead of HEAD for getURLMeta + Cut off length of file names (#3048) 2021-09-30 17:27:13 +07:00
types Strictly type uppy events (#3085) 2021-08-17 16:29:41 +02:00
LICENSE Add @uppy/utils skeleton. 2018-06-14 16:31:19 +02:00
package.json Release 2021-09-20 11:51:06 +02:00
README.md Add all the CI badges (#2725) 2021-01-13 00:30:59 +00:00

@uppy/utils

Uppy logo: a superman puppy in a pink suit

CI status for Uppy tests CI status for Companion tests CI status for browser tests

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

License

The MIT License.