@@ -10,7 +10,7 @@ published: false
10
10
toc_max_heading_level : 2
11
11
---
12
12
13
- Hi ha ho , this is some goofy introduction.
13
+ Hi ha, this is some goofy introduction.
14
14
15
15
## TypeScript rewrite
16
16
@@ -87,7 +87,7 @@ you are spending 400ms on overhead and only a few milliseconds on uploading.
87
87
This really adds up if you upload a lot of small files.
88
88
89
89
AWS, and generally the internet from what we found, tend to agree that ** you
90
- don' t want to use multipart uploads for files under 100MB** . But this sometimes
90
+ don’ t want to use multipart uploads for files under 100MB** . But this sometimes
91
91
puts users of our libraries in an awkward position, as their end users may not
92
92
only upload very large files, or only small files. In this case a portion of
93
93
their users get a subpar experience.
@@ -104,7 +104,7 @@ You can pass a `boolean` or a function to determine it per file.
104
104
## React hooks
105
105
106
106
People working with React are more likely to create their own user interface on
107
- top of Uppy than those working with " vanilla" setups. Working with our pre-build
107
+ top of Uppy than those working with “ vanilla” setups. Working with our pre-build
108
108
UI components is a plug-and-play experience, but building on top of Uppy’s state
109
109
with React primitives has been tedious.
110
110
@@ -196,10 +196,6 @@ select files.
196
196
197
197
We now made a handful of quality of life improvements for users.
198
198
199
- | Before | After |
200
- | :-----------------------------------: | :---: |
201
- |  | yeah |
202
-
203
199
<!-- TODO: video of the improvements-->
204
200
205
201
- **Folder caching**. When naviging in and out of folders, you now no longer
@@ -229,6 +225,34 @@ results beyond the first page API limit of providers.
229
225
230
226
## Companion
231
227
228
+ ### Streaming uploads by default
229
+
230
+ Streaming uploads are now the default in in Companion. This comes with greatly
231
+ improved upload speeds and allows uploading up to hundreds of gigabytes without
232
+ needing a large server storage. We found that this improves speeds by about 37%
233
+ for a Google Drive upload of a 1 GB file
234
+ ([source](https://github.com/transloadit/uppy/pull/4046#issuecomment-1235697937)).
235
+ This feature was also available before but we wanted to have more real world
236
+ usage before setting it as the default.
237
+
238
+ With streaming upload disabled, the whole file will be downloaded first. The
239
+ upload will then start when the download has completely finished.
240
+
241
+ When streaming upload is enabled, Companion will start downloading the file from
242
+ the provider (such as Google Drive), while at the same time starting the upload
243
+ to the destination (such as Tus), and sending every chunk of data consecutively.
244
+
245
+ For more information, see the [Companion docs](/docs/companion/).
246
+
247
+ ### New required option ` corsOrigins`
248
+
249
+ As a security measure, we now require the
250
+ [` corsOrigins` ](/docs/companion/#corsorigins) option to be set.
251
+
252
+ It serves two purposes, it sets the ` Access- Control- Allow- Origin` header and it
253
+ sets the origin for ` window .postMessage ()` , which is needed to communicate the
254
+ OAuth token from the new tab you used to log-in to a provider back to Companion.
255
+
232
256
## And more
233
257
234
258
The 4.0 release contained over 170 contributions, many too small to mention, but
0 commit comments