Uppy-3.html
· 476 B · HTML
Orginalformat
<!-- 1. Add CSS to `<head>` -->
<link
href="https://releases.transloadit.com/uppy/v4.6.0/uppy.min.css"
rel="stylesheet"
/>
<!-- 2. Initialize -->
<div id="files-drag-drop"></div>
<script type="module">
import {
Uppy,
Dashboard,
Tus,
} from 'https://releases.transloadit.com/uppy/v4.6.0/uppy.min.mjs'
const uppy = new Uppy()
uppy.use(Dashboard, { target: '#files-drag-drop' })
uppy.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
</script>
1 | <!-- 1. Add CSS to `<head>` --> |
2 | <link |
3 | href="https://releases.transloadit.com/uppy/v4.6.0/uppy.min.css" |
4 | rel="stylesheet" |
5 | /> |
6 | |
7 | <!-- 2. Initialize --> |
8 | <div id="files-drag-drop"></div> |
9 | <script type="module"> |
10 | import { |
11 | Uppy, |
12 | Dashboard, |
13 | Tus, |
14 | } from 'https://releases.transloadit.com/uppy/v4.6.0/uppy.min.mjs' |
15 | |
16 | const uppy = new Uppy() |
17 | uppy.use(Dashboard, { target: '#files-drag-drop' }) |
18 | uppy.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' }) |
19 | </script> |