mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
import AwsS3 from '@uppy/aws-s3'
|
|
import { Uppy } from '@uppy/core'
|
|
import Dashboard from '@uppy/dashboard'
|
|
|
|
import '@uppy/core/dist/style.css'
|
|
import '@uppy/dashboard/dist/style.css'
|
|
|
|
const uppy = new Uppy()
|
|
.use(Dashboard, { target: '#app', inline: true })
|
|
.use(AwsS3, {
|
|
limit: 2,
|
|
endpoint: process.env.VITE_COMPANION_URL,
|
|
shouldUseMultipart: false,
|
|
})
|
|
|
|
// Keep this here to access uppy in tests
|
|
window.uppy = uppy
|