|
@@ -8,13 +8,15 @@
|
|
|
</head>
|
|
|
<body>
|
|
|
<button id="uppyModalOpener">Open Modal</button>
|
|
|
- <script src="https://releases.transloadit.com/uppy/v3.0.0-beta.5/uppy.min.js"></script>
|
|
|
- <script>
|
|
|
- const uppy = new Uppy.Core({debug: true, autoProceed: false})
|
|
|
- .use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
|
|
- .use(Uppy.Instagram, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
|
|
|
- .use(Uppy.GoogleDrive, { target: Uppy.Dashboard, companionUrl: 'http://localhost:3020' })
|
|
|
- .use(Uppy.Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
|
|
|
+ <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/v3.0.0-beta.5/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`)
|