|
@@ -8,7 +8,7 @@ published: false
|
|
|
|
|
|
<img src="/images/blog/0.28/uppy-add-initial.jpg">
|
|
|
|
|
|
-In `0.28`, we TODO
|
|
|
+In `0.28`, we are introducing a new “Single Upload” mode, improving on Status Bar with a spinner and different pause/resume/cancel buttons, sharing progress on brining back unified locale packs and a Transloadit preset 🍁
|
|
|
|
|
|
<!--more-->
|
|
|
|
|
@@ -22,11 +22,51 @@ The new [`allowMultipleUploads`](https://uppy.io/docs/uppy/#allowMultipleUploads
|
|
|
|
|
|
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.
|
|
|
|
|
|
-## Item X
|
|
|
+Speaking of Dashboard, it now also shows more statuses in the title bar: “Upload complete”, “Upload paused”, “Processing 5 files” and “Uploading 5 files”.
|
|
|
|
|
|
-⚠️ **breaking**
|
|
|
+## Status Bar improvements
|
|
|
|
|
|
-## Item Y
|
|
|
+- ⚠️ **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 docs for more: https://uppy.io/docs/status-bar/.
|
|
|
+- Status Bar now features a spinner animation when upload is in progress.
|
|
|
+- Encoding (with Transloadit plugin, for example) and uploading progress now get different colors, so it’s easier to tell what’s happening visually.
|
|
|
+
|
|
|
+## Locale packs
|
|
|
+
|
|
|
+In the beginning, we used to have unified locale packs text strings in Uppy — English, Russian, German, Polish, etc. Then we made a switched to per-plugin locales, and the ability to load one file with locale strings in any language (locale pack) was lost for a while. This release is the first step in bringing this functionality back.
|
|
|
+
|
|
|
+With this change, you can load a locale pack like so: `const uppy = Uppy({locale: german})`, then still override specific strings in a certain plugin, if needed:
|
|
|
+
|
|
|
+```js
|
|
|
+const uppy = Uppy({locale: german})
|
|
|
+uppy.use(Dashboard, {
|
|
|
+ trigger: '#pick-files',
|
|
|
+ locale: {
|
|
|
+ strings: {
|
|
|
+ dropPasteImport: 'Something else here, %{browse} or this'
|
|
|
+ }
|
|
|
+ }
|
|
|
+})
|
|
|
+```
|
|
|
+
|
|
|
+The benefit to this is that there will be a central point of configuration for languages, so there could be language packs with strings for eg Czech at @uppy/lang-cz (or @uppy/langs/cz) that would be very easy to use.
|
|
|
+
|
|
|
+After Uppy 0.28.0 this functionality is technically possible, but we still need to update and publish locale packs for multiple languages.
|
|
|
+
|
|
|
+## Hosted Companion with Transloadit
|
|
|
+
|
|
|
+When using remote providers like 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:
|
|
|
+
|
|
|
+```js
|
|
|
+const Dropbox = require('@uppy/dropbox')
|
|
|
+const Transloadit = require('@uppy/transloadit')
|
|
|
+
|
|
|
+uppy.use(Dropbox, {
|
|
|
+ serverUrl: Transloadit.COMPANION
|
|
|
+ serverPattern: Transloadit.COMPANION_PATTERN
|
|
|
+})
|
|
|
+```
|
|
|
+
|
|
|
+Please see [Transloadit plugin documentation](https://uppy.io/docs/transloadit/) for more details.
|
|
|
|
|
|
## Transloadit Preset
|
|
|
|
|
@@ -42,7 +82,12 @@ Stay tuned!
|
|
|
|
|
|
## Other Cool Changes
|
|
|
|
|
|
-- @uppy/companion: Remove an erroneous typescript dependency that added 40MB to the install size
|
|
|
+- @uppy/core: ⚠️ **breaking** remove `upload-cancel` event, `file-removed` should be enough, see #1069 for details
|
|
|
+- @uppy/companion: ⚠️ **breaking** Migrated provider adapter to Companion: saves 5KB on the frontend, all heavy lifting moved to the server side
|
|
|
+- @uppy/companion: Removed an erroneous typescript dependency that added 40MB to the install size
|
|
|
+- @uppy/thumbnail-generator: You can now constrain thumbnail height, thanks to @richartkeil, see [#1096](https://github.com/transloadit/uppy/pull/1096) for documentation (we’ll are planning to add real Thumbnail Generator documentation soo, too!)
|
|
|
+- @uppy/webcam: Fix getting data from Webcam recording if mime type includes codec metadata (#1094 / @goto-bus-stop)
|
|
|
+- meta: Added integration tests (in real browsers, thanks to Sauce Labs) for @uppy/url, @uppy/transloadit and @uppy/thumbnail-generator 🚀
|
|
|
|
|
|
See [full changelog (0.28 and 0.27.x patches) for more](https://github.com/transloadit/uppy/blob/master/CHANGELOG.md#0280)
|
|
|
|