mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 16:53:33 +00:00
| Package | Version | Package | Version | | ---------------------- | ------------- | ---------------------- | ------------- | | @uppy/companion | 5.0.0-beta.12 | @uppy/form | 4.0.0-beta.6 | | @uppy/companion-client | 4.0.0-beta.9 | @uppy/provider-views | 4.0.0-beta.11 | | @uppy/core | 4.0.0-beta.12 | uppy | 4.0.0-beta.14 | | @uppy/drag-drop | 4.0.0-beta.5 | | | - @uppy/companion: make `oauthOrigin` option required (Mikael Finstad / #5276) - @uppy/provider-views: `afterFill()` - add loading progress (Evgenia Karunus / #5288)
34 lines
991 B
HTML
34 lines
991 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.0-beta.14/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.0-beta.14/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>
|