uppy/examples/cdn-example/index.html
github-actions[bot] 21d37d8481
Release: uppy@4.0.4 (#5346)
| Package         | Version | Package         | Version |
| --------------- | ------- | --------------- | ------- |
| @uppy/companion |   5.0.4 | uppy            |   4.0.4 |
| @uppy/locales   |   4.0.3 |                 |         |

- meta: fixup! meta: fix require path in `upload-to-cdn` (Antoine du Hamel / #5343)
2024-07-15 14:42:27 +00:00

34 lines
975 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/v4.0.4/uppy.min.css"
rel="stylesheet"
/>
</head>
<body>
<noscript>You need JavaScript enabled for this example to work.</noscript>
<button id="uppyModalOpener">Open Modal</button>
<script type="module">
import {
Uppy,
Dashboard,
Webcam,
Tus,
} from 'https://releases.transloadit.com/uppy/v4.0.4/uppy.min.mjs'
const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
})
</script>
</body>
</html>