mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
30 lines
624 B
JavaScript
30 lines
624 B
JavaScript
const Uppy = require('@uppy/core')
|
|
const Dashboard = require('@uppy/dashboard')
|
|
const GoldenRetriever = require('@uppy/golden-retriever')
|
|
|
|
// Initialise two Uppy instances with the GoldenRetriever plugin,
|
|
// but with different `id`s.
|
|
const a = new Uppy({
|
|
id : 'a',
|
|
debug: true,
|
|
})
|
|
.use(Dashboard, {
|
|
target: '#a',
|
|
inline: true,
|
|
width : 400,
|
|
})
|
|
.use(GoldenRetriever, { serviceWorker: false })
|
|
|
|
const b = new Uppy({
|
|
id : 'b',
|
|
debug: true,
|
|
})
|
|
.use(Dashboard, {
|
|
target: '#b',
|
|
inline: true,
|
|
width : 400,
|
|
})
|
|
.use(GoldenRetriever, { serviceWorker: false })
|
|
|
|
window.a = a
|
|
window.b = b
|