|
@@ -15,15 +15,13 @@ In `0.30` we are introducing a new friend for Uppy — the Robodog.
|
|
|
|
|
|
## Robodog
|
|
|
|
|
|
-You already know [Transloadit](https://transloadit.com), the company behind Uppy and [Tus](https://tus.io). TL;DR Transloadit is the Swiss Army Knife for your files: importing, resizing, croping and watermarking images, making GIFs, transcoding videos, extracting thumbnails, generating audio waveforms, and so much more is a breeze with Transloadit.
|
|
|
+Uppy is developed by [Transloadit](https://transloadit.com). Transloadit is the Swiss Army Knife for your files: importing, resizing, cropping and watermarking images, making GIFs, transcoding videos, extracting thumbnails, generating audio waveforms, and so much more all in a single service. Uppy has a similarly large feature set in dozens of plugins, but because of that it can be complicated to wire everything up for the best experience.
|
|
|
|
|
|
-[Robodog](https://uppy.io/docs/robodog/) is a new Uppy-based library that has been trained to work with Transloadit API. It includes 3 components:
|
|
|
+[Robodog](https://uppy.io/docs/robodog/) is a new Uppy-based library that has been trained to work with Transloadit. It includes 3 components:
|
|
|
|
|
|
-1. [File picker](https://uppy.io/docs/robodog/picker/) (using the Dashboard plugin you know and love for the modal UI) with support for imports from third-party services. Used for profile avatars or images to embed in a blog post.
|
|
|
+1. [File picker](https://uppy.io/docs/robodog/picker/), using the Dashboard plugin you know and love for the modal UI, with support for imports from third-party services.
|
|
|
2. [Form](https://uppy.io/docs/robodog/form/): integration with your existing HTML forms. Files will be uploaded to Transloadit, and the form will submit JSON information about the files and encoding results.
|
|
|
-3. [Upload](https://uppy.io/docs/robodog/upload/): programmatic uploads — just call `transloadit.upload(files, opts)` and get an array of results back.
|
|
|
-
|
|
|
-> Because Robodog is based on Uppy, you can add any existing Uppy plugin to add more functionality.
|
|
|
+3. [Upload](https://uppy.io/docs/robodog/upload/): one-line programmatic uploads — call `transloadit.upload(files, opts)` and get an array of results back.
|
|
|
|
|
|
<img src="https://media.giphy.com/media/Eq7T3GwDAlggE/giphy.gif">
|
|
|
|
|
@@ -72,9 +70,9 @@ We’ve changed [`upload-success`](https://uppy.io/docs/uppy/#upload-success) an
|
|
|
|
|
|
```js
|
|
|
uppy.on('upload-success', (file, responseObject) => {
|
|
|
- // responseObject (depending on the uploader plugin used, it might
|
|
|
- // contain less info, the example is for @uppy/xhr-upload):
|
|
|
- // {
|
|
|
+ // (depending on the uploader plugin used, it might contain
|
|
|
+ // less info, the example is for @uppy/xhr-upload)
|
|
|
+ // responseObject = {
|
|
|
// status, // HTTP status code (0, 200, 300)
|
|
|
// body, // response body
|
|
|
// uploadURL // the file url, if it was returned
|
|
@@ -84,7 +82,7 @@ uppy.on('upload-success', (file, responseObject) => {
|
|
|
|
|
|
```js
|
|
|
uppy.on('upload-error', (file, responseObject) => {
|
|
|
- // {
|
|
|
+ // responseObject = {
|
|
|
// status, // HTTP status code (0, 200, 300)
|
|
|
// body // response body
|
|
|
// }
|