|
@@ -2,7 +2,7 @@
|
|
|
title: "Uppy 0.28: A look behind the scenes"
|
|
|
date: 2018-11-05
|
|
|
author: renee
|
|
|
-image: "https://uppy.io/images/blog/0.28/dashboard-uploading.jpg"
|
|
|
+image: "/uppy/images/blog/0.28/dashboard-uploading.jpg"
|
|
|
published: true
|
|
|
---
|
|
|
|
|
@@ -18,15 +18,15 @@ Uppy has been flexible about uploading lots of things from the start. You can ad
|
|
|
|
|
|
An upload in Uppy terminology can be more than one file. Users can add a bunch of files and when they press "Upload", all those files are bunched up into an upload. They can then add more files and press the "Upload" button again: the _new_ files are bunched into a second upload.
|
|
|
|
|
|
-The new [`allowMultipleUploads`](https://uppy.io/docs/uppy/#allowMultipleUploads-true) option in Uppy Core can be set to `false` to only allow a single one of those uploads. Once an upload is started, the Dashboard and Status Bar no longer show "add files" and "upload" buttons. You can listen for a 'complete' event and then safely continue your app's form flow.
|
|
|
+The new [`allowMultipleUploads`](/uppy/docs/uppy/#allowMultipleUploads-true) option in Uppy Core can be set to `false` to only allow a single one of those uploads. Once an upload is started, the Dashboard and Status Bar no longer show "add files" and "upload" buttons. You can listen for a 'complete' event and then safely continue your app's form flow.
|
|
|
|
|
|
-The Dashboard also has a new option: [`closeAfterFinish`](https://uppy.io/docs/dashboard/#closeAfterFinish-false). When `true`, the modal Dashboard will automatically hide once an upload has completed. You should only use this option in conjunction with `allowMultipleUploads`, otherwise it might close the Dashboard when the user isn't done yet! It can only be used with the modal Dashboard, when [`inline`](https://uppy.io/docs/dashboard/#inline-false) is set to `false`. "Closing" an inline Dashboard makes no sense :smile: You will see a warning in the console in both cases, so you don't have to remember all that.
|
|
|
+The Dashboard also has a new option: [`closeAfterFinish`](/uppy/docs/dashboard/#closeAfterFinish-false). When `true`, the modal Dashboard will automatically hide once an upload has completed. You should only use this option in conjunction with `allowMultipleUploads`, otherwise it might close the Dashboard when the user isn't done yet! It can only be used with the modal Dashboard, when [`inline`](/uppy/docs/dashboard/#inline-false) is set to `false`. "Closing" an inline Dashboard makes no sense :smile: You will see a warning in the console in both cases, so you don't have to remember all that.
|
|
|
|
|
|
Speaking of the Dashboard, it now also shows more statuses in the title bar: “Upload complete”, “Upload paused”, “Processing 5 files” and “Uploading 5 files”.
|
|
|
|
|
|
## Status Bar improvements
|
|
|
|
|
|
-- ⚠️ **breaking** We’ve added separate options for hiding pause/resume and cancel buttons. So now there are several options for buttons: `hideUploadButton`, `hideRetryButton`, `hidePauseResumeButton` and `hideCancelButton`. These options can be passed from the Dashboard, if you are not using Status Bar separately (most common case). See the docs for more info: <https://uppy.io/docs/status-bar/>.
|
|
|
+- ⚠️ **breaking** We’ve added separate options for hiding pause/resume and cancel buttons. So now there are several options for buttons: `hideUploadButton`, `hideRetryButton`, `hidePauseResumeButton` and `hideCancelButton`. These options can be passed from the Dashboard, if you are not using Status Bar separately (most common case). See the docs for more info: </uppy/docs/status-bar/>.
|
|
|
- The Status Bar now features a spinner animation when upload is in progress.
|
|
|
- Encoding (with the Transloadit plugin, for example) and uploading progress now get different colors, so it’s easier to tell what’s happening, visually.
|
|
|
|
|
@@ -62,7 +62,7 @@ After Uppy 0.28.0, this functionality is technically possible, but we still need
|
|
|
|
|
|
## Hosted Companion with Transloadit
|
|
|
|
|
|
-When using remote providers such as Google Drive and Dropbox, so that your users can pick files from these sources, you can host [Companion](https://uppy.io/docs/companion/) yourself, or use the one provided by Transloadit. And to simplify the latter, you can now use `Transloadit.COMPANION` and `Transloadit.COMPANION_PATTERN` constants in remote provider options:
|
|
|
+When using remote providers such as Google Drive and Dropbox, so that your users can pick files from these sources, you can host [Companion](/uppy/docs/companion/) yourself, or use the one provided by Transloadit. And to simplify the latter, you can now use `Transloadit.COMPANION` and `Transloadit.COMPANION_PATTERN` constants in remote provider options:
|
|
|
|
|
|
```js
|
|
|
const Dropbox = require('@uppy/dropbox')
|
|
@@ -74,11 +74,11 @@ uppy.use(Dropbox, {
|
|
|
})
|
|
|
```
|
|
|
|
|
|
-Please see [Transloadit plugin documentation](https://uppy.io/docs/transloadit/) for more details.
|
|
|
+Please see [Transloadit plugin documentation](/uppy/docs/transloadit/) for more details.
|
|
|
|
|
|
## Transloadit Preset
|
|
|
|
|
|
-Lately, we've been working on a wrapper package around Uppy and the [Transloadit plugin](https://uppy.io/docs/transloadit/) that will make common Transloadit-based workflows much simpler to implement. It's not ready just yet, but it should land in the next month!
|
|
|
+Lately, we've been working on a wrapper package around Uppy and the [Transloadit plugin](/uppy/docs/transloadit/) that will make common Transloadit-based workflows much simpler to implement. It's not ready just yet, but it should land in the next month!
|
|
|
|
|
|
This "preset" will provide three or so simple methods:
|
|
|
|