-
Notifications
You must be signed in to change notification settings - Fork 2k
/
index.html
41 lines (39 loc) · 1.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!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.3/uppy.min.css"
rel="stylesheet"
/>
</head>
<body>
<button id="uppyModalOpener">Open Modal</button>
<noscript>This web page requires JavaScript to work properly.</noscript>
<script type="module">
import {
Uppy,
Dashboard,
Instagram,
GoogleDrive,
Tus,
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.3/uppy.min.mjs'
const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
.use(Instagram, {
target: Dashboard,
companionUrl: 'http://localhost:3020',
})
.use(GoogleDrive, {
target: Dashboard,
companionUrl: 'http://localhost:3020',
})
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
uppy.on('success', (fileCount) => {
console.log(`${fileCount} files uploaded`)
})
</script>
</body>
</html>