mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
12 lines
362 B
Text
12 lines
362 B
Text
import { Core, DragDrop, ProgressBar, Tus10 } from 'uppy'
|
||
|
||
const uppy = new Core({autoProceed: false})
|
||
uppy
|
||
.use(DragDrop, {target: '#drop-target'})
|
||
.use(ProgressBar, {target: 'body'})
|
||
.use(Tus10, {endpoint: '//tusd.tus.io/files'})
|
||
.run()
|
||
|
||
uppy.on('core:success', (fileCount) => {
|
||
console.log(`Upload complete. We uploaded ${fileCount} files!`)
|
||
})
|