Update README.md

This commit is contained in:
Artur Paikin 2022-08-22 19:28:28 +01:00 committed by GitHub
parent f3aeac4b0d
commit ac10c6d821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ Uppy is a sleek, modular JavaScript file uploader that integrates seamlessly wit
<a href="https://transloadit.com" target="_blank"><img width="185" src="https://github.com/transloadit/uppy/raw/main/assets/developed-by-transloadit.png"></a>
Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile API to handle any file in your app.
## Example
@ -31,6 +31,7 @@ Code used in the above example:
import Uppy from '@uppy/core'
import Dashboard from '@uppy/dashboard'
import RemoteSources from '@uppy/remote-sources'
import ImageEditor from '@uppy/image-editor'
import Webcam from '@uppy/webcam'
import Tus from '@uppy/tus'
@ -38,6 +39,7 @@ const uppy = new Uppy()
.use(Dashboard, { trigger: '#select-files' })
.use(RemoteSources, { companionUrl: 'https://companion.uppy.io' })
.use(Webcam, { target: Dashboard })
.use(ImageEditor, { target: Dashboard })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
.on('complete', (result) => {
console.log('Upload result:', result)