uppy/examples/aws-companion/main.js
Antoine du Hamel dfed0ff200
example: fix aws-companion example (#3850)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-08-03 16:07:51 +02:00

27 lines
605 B
JavaScript

import AwsS3 from '@uppy/aws-s3'
import Uppy from '@uppy/core'
import Dashboard from '@uppy/dashboard'
import GoogleDrive from '@uppy/google-drive'
import Webcam from '@uppy/webcam'
import '@uppy/core/dist/style.css'
import '@uppy/dashboard/dist/style.css'
import '@uppy/webcam/dist/style.css'
const uppy = new Uppy({
debug: true,
autoProceed: false,
})
uppy.use(GoogleDrive, {
companionUrl: 'http://localhost:3020',
})
uppy.use(Webcam)
uppy.use(Dashboard, {
inline: true,
target: 'body',
plugins: ['GoogleDrive', 'Webcam'],
})
uppy.use(AwsS3, {
companionUrl: 'http://localhost:3020',
})