mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
| Package | Version | Package | Version | | -------------------------- | ------- | -------------------------- | ------- | | @uppy/google-drive-picker | 0.3.1 | @uppy/unsplash | 4.3.0 | | @uppy/google-photos-picker | 0.3.1 | @uppy/utils | 6.1.1 | | @uppy/onedrive | 4.2.1 | @uppy/xhr-upload | 4.3.1 | | @uppy/provider-views | 4.4.0 | uppy | 4.12.0 | | @uppy/svelte | 4.3.0 | | | - @uppy/unsplash,@uppy/provider-views: add utmSource option (Merlijn Vos / #5580) - @uppy/xhr-upload: allow custom error message in onAfterResponse (Merlijn Vos / #5578) - @uppy/onedrive: fix AsyncStore import (Merlijn Vos / #5579) - @uppy/google-drive-picker,@uppy/google-photos-picker: Fix Google Picker plugins locale (Merlijn Vos / #5575)
34 lines
977 B
HTML
34 lines
977 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.12.0/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.12.0/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>
|