uppy/examples/cdn-example/index.html
github-actions[bot] d01c50a41f
Release: uppy@3.25.2 (#5151)
| Package          | Version | Package          | Version |
| ---------------- | ------- | ---------------- | ------- |
| @uppy/compressor |   1.1.4 | @uppy/status-bar |   3.3.3 |
| @uppy/core       |  3.11.2 | uppy             |  3.25.2 |
| @uppy/dashboard  |   3.8.3 |                  |         |

- @uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/status-bar: Upgrade @transloadit/prettier-bytes (Merlijn Vos / #5150)
- meta: run Prettier in the release workflow (Antoine du Hamel)
2024-05-08 07:45:47 +00:00

53 lines
1.6 KiB
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/v3.25.2/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/v3.25.2/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>
<!-- To support older browsers, you can use the legacy bundle which adds a global `Uppy` object. -->
<script
nomodule
src="https://releases.transloadit.com/uppy/v3.25.2/uppy.legacy.min.js"
></script>
<script nomodule>
{
const { Dashboard, Webcam, Tus } = Uppy
const uppy = new Uppy.Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
uppy.on('success', function (fileCount) {
console.log(`${fileCount} files uploaded`)
})
}
</script>
</body>
</html>