mirror of
https://github.com/transloadit/uppy.git
synced 2026-08-03 15:23:30 +00:00
| Package | Version | Package | Version | | ------------------------- | ------- | ------------------------- | ------- | | @uppy/companion | 3.2.1 | @uppy/thumbnail-generator | 2.1.1 | | @uppy/compressor | 0.2.2 | @uppy/robodog | 2.3.1 | | @uppy/onedrive | 2.0.6 | uppy | 2.5.1 | - meta: Missing comma and wrong attribute name on cors example config (Edgar Santiago / #3465) - @uppy/onedrive: Update README.md (Márton László Attila / #3489) - @uppy/compressor: Add image compressor plugin (Artur Paikin / #3471) - @uppy/companion: fix periodicPingUrls oops (Mikael Finstad / #3490) - meta: add support for ESM sources in build script (Antoine du Hamel / #3468)
23 lines
814 B
HTML
23 lines
814 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/v2.5.1/uppy.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<button id="uppyModalOpener">Open Modal</button>
|
|
<script src="https://releases.transloadit.com/uppy/v2.5.1/uppy.min.js"></script>
|
|
<script>
|
|
const uppy = new Uppy.Core({debug: true, autoProceed: false})
|
|
.use(Uppy.Dashboard, { trigger: '#uppyModalOpener' })
|
|
.use(Uppy.Webcam, {target: Uppy.Dashboard})
|
|
.use(Uppy.Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
|
|
|
|
uppy.on('success', (fileCount) => {
|
|
console.log(`${fileCount} files uploaded`)
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|