mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 11:44:53 +00:00
| Package | Version | Package | Version | | ----------------- | ------- | ----------------- | ------- | | @uppy/transloadit | 2.3.3 | uppy | 2.12.3 | | @uppy/robodog | 2.8.3 | | | - @uppy/transloadit: fix TypeError when file is cancelled asynchronously (Antoine du Hamel / #3872) - @uppy/robodog,@uppy/transloadit: use modern syntax to simplify code (Antoine du Hamel / #3873) - meta: fix `release-beta` automation (Antoine du Hamel)
23 lines
816 B
HTML
23 lines
816 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title></title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://releases.transloadit.com/uppy/v2.12.3/uppy.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<button id="uppyModalOpener">Open Modal</button>
|
|
<script src="https://releases.transloadit.com/uppy/v2.12.3/uppy.min.js"></script>
|
|
<script>
|
|
const uppy = new Uppy.Core({debug: true, autoProceed: false})
|
|
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
|
.use(Uppy.Webcam, {target: Uppy.Dashboard})
|
|
.use(Uppy.Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
|
|
|
|
uppy.on('success', (fileCount) => {
|
|
console.log(`${fileCount} files uploaded`)
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|