const uppy = Uppy.Core({debug: true, autoProceed: false})
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
.use(Uppy.Webcam, {target: Uppy.Dashboard})
.use(Uppy.Tus, { endpoint: 'https://master.tus.io/files/' })
.run()
uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
})
java_php