mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
| Package | Version | Package | Version | | ----------------- | ------- | ----------------- | ------- | | @uppy/transloadit | 2.3.1 | uppy | 2.12.1 | | @uppy/robodog | 2.8.1 | | | - @uppy/transloadit: fix `COMPANION_PATTERN` export (Antoine du Hamel / #3820) - meta: fix URL generation in the release script (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.1/uppy.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<button id="uppyModalOpener">Open Modal</button>
|
|
<script src="https://releases.transloadit.com/uppy/v2.12.1/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>
|