Commit graph

8457 commits

Author SHA1 Message Date
Andrew
eea0987f90
Fix @uppy/angular component crash by loosening package.json version constraints (#3210) 2021-10-01 14:01:36 +02:00
Mikael Finstad
56a67de550
Close window on auth callback error and show error to user (#3143)
* Close window on auth callback error

Because simply receiving a "Bad request" is very bad UX
For example if the user cancels the auth flow, or doesn't give companion access
it's better to go back

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

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

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

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

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

* Update callback.js

* pull out reusable code to getDynamicStateFromRequest

* Signal auth error to client

* fix test mocking

* npm run build:locale-pack

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

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

* fix lint

* add i18n string that got lost during merge

* add french translation

* add dutch translation

* add norwegian translation

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 18:07:27 +07:00
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
Mikael Finstad
f341c0f400
Include status code in HTTP error message (#3212)
Makes it easier to debug when we can see it in the log files

e.g.
```
companion: 2021-09-20T20:03:53.226Z [error] provider.onedrive.list.error ProviderApiError: Access Denied
companion: 2021-09-20T19:57:49.897Z [error] provider.onedrive.list.error ProviderApiError: Item does not exist
```
We don't know what is the error code here...
2021-09-30 16:59:48 +07:00
Mikael Finstad
12705e769f
Default allow headers (#3167)
* refactor cors middleware to avoid duplicates

* Make more ACAH headers default

Add the following headers to access-control-allow-headers by default:
Authorization, Origin, Content-Type, Accept
They are needed for basic operation. See https://github.com/transloadit/uppy/issues/3021
therefore also remove custom middlewares in examples and standalone

* Update outdated readme for S3

AWS now requires JSON instead of XML format

* Update packages/@uppy/companion/src/server/middlewares.js

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

* Update packages/@uppy/companion/src/server/middlewares.js

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

* fix review comments

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 16:37:23 +07:00
Mikael Finstad
1ae19a28c1
Make uploadUrls recommended (#3182)
* Make uploadUrls recommended

- warn on startup if uploadUrls is not specified as not specifying it is a security risk
- improve docs to make it more clear why uploadUrls should be specified (say that uploadUrls is required even though it is not, due to backward compatibility)
- no longer require_tld (it gives a false security) - fixes #2831

* Apply suggestions from code review

* Apply suggestions from code review

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

* remove `example: []`

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-30 16:31:10 +07:00
Luca Trazzi
4ff584ca24
Fix typo in @uppy/core types (#3230)
Co-authored-by: lucatrazzi <luca.trazzi@garaio.com>
2021-09-29 13:51:46 +02:00
Dani Latorre
8b8783baca
Add support for opts.headers as a function in @uppy/tus (#3221) 2021-09-29 13:51:00 +02:00
Antoine du Hamel
d69031524c
@uppy/core: move Uppy class to its own module (#3225)
* @uppy/core: move `Uppy` class to its own module

Fixes: https://github.com/transloadit/uppy/issues/3220

* Rename snapshot file

* Update docs

* Update website/src/_posts/2021-08-2.0.md

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* Update migration guide

* Do not bundle preact with non-UI plugin packages

Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2021-09-28 19:04:33 +02:00
Antoine du Hamel
46b0540e92
@uppy/image-editor: add workaround for when Cropper is loaded as ESM (#3218)
* @uppy/image-editor: add workaround for when `Cropper` is loaded as ESM

Fixes: https://github.com/transloadit/uppy/issues/3199

* Update packages/@uppy/image-editor/src/Editor.js

Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>

* Add backlog entry

Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
2021-09-28 16:59:13 +02:00
Antoine du Hamel
7fd7b604d7
@uppy/react: update HTMLAttributes filter (#3215) 2021-09-28 16:58:50 +02:00
Antoine du Hamel
45325720e9
@uppy/companion: Object.fromEntries is not available on Node.js v10.x (#3209) 2021-09-28 16:58:12 +02:00
Antoine du Hamel
6b68876c68
@uppy/react: propagate prop mutation (#3208)
* @uppy/react: propagate prop mutation

Fixes: https://github.com/transloadit/uppy/issues/3203

* fixup! @uppy/react: propagate prop mutation

* fixup! @uppy/react: propagate prop mutation

* Apply changes to other Components

* Update TODOs
2021-09-28 16:57:58 +02:00
Merlijn Vos
a298e59f17
Show all details on mobile when showProgressDetails is true (#3174) 2021-09-20 15:47:28 +02:00
Antoine du Hamel
c84e218750
@uppt/xhr-upload: fix this.uppy is undefined error (#3207)
Fixes: https://github.com/transloadit/uppy/issues/3195
2021-09-20 15:45:38 +02:00
Antoine du Hamel
ff727d435a
ci: test on Node.js v16.x (#3205)
And upgrade `actions/setup-node` version.
2021-09-20 15:45:17 +02:00
Antoine du Hamel
c33c4e43b2
@uppy/dashboard: fix linter (#3206) 2021-09-20 15:44:34 +02:00
Murderlon
2b84c6e0ee
Add 2.1.1 to CHANGELOG.md 2021-09-20 13:37:05 +02:00
Murderlon
3ff939374b
Release 2021-09-20 13:03:13 +02:00
Murderlon
b3b68c0777
Release 2021-09-20 11:51:06 +02:00
Karol Tyka
e6b474635b
Fix "attempted to use private field on non-instance" in SearchProvider (#3201) 2021-09-20 11:30:31 +02:00
Adrian Reithaug
ecd2dec9cd
Add 'done' to nb_NO.js (#3200) 2021-09-16 17:11:55 +02:00
Antoine du Hamel
b364708715
@uppy/transloadit: fix unhandledPromiseRejection failures (#3197)
* @uppy/transloadit: fix unhandledPromiseRejection failures

Fixes: https://github.com/transloadit/uppy/issues/3189

* Add transloadit2 to end2end test matrix
2021-09-16 15:24:20 +02:00
Marcelo Luiz Onhate
c7e0a5a883
fix: AbortController is not defined on Node.js (Server Side Render) (#3169)
* fix: AbortController is not defined

* use globalThis

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

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-13 14:55:10 +02:00
Antoine du Hamel
017c21a92c
@uppy/aws-s3-multipart: fix linter issues (#3188) 2021-09-10 15:54:07 +02:00
Murderlon
581c2f3a38
Fix eslint error in MultipartUploader 2021-09-10 13:22:12 +02:00
christianwengert
321cd8bfaf
Fix net::ERR_OUT_OF_MEMORY in @uppy/aws-s3-multipart (#3183)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-10 13:13:47 +02:00
Merlijn Vos
bbb035a9df
Fix autoOpenFileEditor for @uppy/dashboard (#3186) 2021-09-10 12:38:55 +02:00
Merlijn Vos
6e0ceeaba7
Update Google Drive for brand compliance (#3178) 2021-09-08 19:27:20 +02:00
Mikael Finstad
d0d117c131
Downgrade to Node 14 in GitHub Actions (#3179)
Due to hitting this error: nodejs/node#40030
2021-09-08 15:45:03 +02:00
YukeshShr
e555ef6a18
Remove broken link in _posts/2016-09-0.10.md (#3161)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-09-06 12:20:32 +02:00
Merlijn Vos
781eb006e4
Add migration guides to website (#3160) 2021-09-06 11:56:12 +02:00
YukeshShr
5de98d8f61
Fix webdriver.io guide link (#3165) 2021-09-06 11:30:22 +02:00
YukeshShr
b91a846056
Remove broken link in _posts/2019-04-liftoff-23.md (#3164) 2021-09-06 11:28:19 +02:00
YukeshShr
609a0133c9
Fix broken link in _posts/2019-04-liftoff-08.md (#3163) 2021-09-06 11:27:02 +02:00
YukeshShr
c55d10228d
Remove broken link in _posts/2016-08-0.9.0.md (#3162) 2021-09-06 11:25:00 +02:00
Artur Paikin
86cb2294b0
remove resume option from transloadit plugin (#3149) 2021-09-03 01:55:23 +01:00
Artur Paikin
c263d882d2 Update CHANGELOG.md 2021-09-02 12:54:23 +01:00
Murderlon
25019fa1e0
Fix list items 2021-09-02 12:20:46 +02:00
Murderlon
130f2a4d76
Fix release date 2021-09-02 12:14:41 +02:00
Murderlon
89741a439b
Merge https://github.com/transloadit/uppy
* https://github.com/transloadit/uppy:
  Add missing `editFileWithFilename` to `de_DE` locale (#3158)
2021-09-02 12:13:49 +02:00
Murderlon
5c3706779c
Add version table to 2.1.0 2021-09-02 12:13:24 +02:00
Bernhard P
b0804df44b
Add missing editFileWithFilename to de_DE locale (#3158) 2021-09-02 10:50:34 +02:00
Murderlon
d7e89e096e
Fix release dates in CHANGELOG.md 2021-09-01 16:43:23 +02:00
Murderlon
ba268a5e5b
Add 2.0.2 and 2.1.0 to CHANGELOG.md 2021-09-01 16:40:09 +02:00
Murderlon
246eafc51a
Release 2021-09-01 11:30:19 +02:00
Bernhard P
5856072279
Add methods to types for @uppy/xhr-upload (#3154) 2021-09-01 11:18:09 +02:00
Jhen-Jie Hong
5937bf2127
@uppy/aws-s3: fix invalid state error of XHR (#3130)
Co-authored-by: Murderlon <merlijn@soverin.net>
2021-09-01 11:16:54 +02:00
anark
b1388d485c
Fix bad link in 2.0 release post (#3151) 2021-08-31 19:52:10 +02:00
Antoine du Hamel
c22a8a0898
meta: fix aduh95 email address 2021-08-31 15:18:11 +02:00