Skip to content

Commit 06fab4e

Browse files
committed
Add Companion section
1 parent 82fa731 commit 06fab4e

File tree

1 file changed

+31
-7
lines changed

1 file changed

+31
-7
lines changed

blog/2024-07-3-uppy-4.0.md

+31-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ published: false
1010
toc_max_heading_level: 2
1111
---
1212

13-
Hi ha ho, this is some goofy introduction.
13+
Hi ha, this is some goofy introduction.
1414

1515
## TypeScript rewrite
1616

@@ -87,7 +87,7 @@ you are spending 400ms on overhead and only a few milliseconds on uploading.
8787
This really adds up if you upload a lot of small files.
8888

8989
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+
dont want to use multipart uploads for files under 100MB**. But this sometimes
9191
puts users of our libraries in an awkward position, as their end users may not
9292
only upload very large files, or only small files. In this case a portion of
9393
their users get a subpar experience.
@@ -104,7 +104,7 @@ You can pass a `boolean` or a function to determine it per file.
104104
## React hooks
105105

106106
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
108108
UI components is a plug-and-play experience, but building on top of Uppy’s state
109109
with React primitives has been tedious.
110110

@@ -196,10 +196,6 @@ select files.
196196
197197
We now made a handful of quality of life improvements for users.
198198
199-
| Before | After |
200-
| :-----------------------------------: | :---: |
201-
| ![yeah](/img/blog/3.13-3.21/crop.mov) | yeah |
202-
203199
<!-- TODO: video of the improvements-->
204200
205201
- **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.
229225
230226
## Companion
231227
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+
232256
## And more
233257
234258
The 4.0 release contained over 170 contributions, many too small to mention, but

0 commit comments

Comments
 (0)