mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-19 01:24:18 +00:00
| Package | Version | Package | Version | | ---------------------- | ------- | ---------------------- | ------- | | @uppy/angular | 0.5.1 | @uppy/companion-client | 3.1.1 | | @uppy/aws-s3-multipart | 3.1.1 | @uppy/utils | 5.1.1 | | @uppy/companion | 4.1.1 | uppy | 3.3.1 | - @uppy/aws-s3-multipart: handle slow connections better (Antoine du Hamel / #4213) - @uppy/companion-client: treat `*` the same as missing header (Antoine du Hamel / #4221) - @uppy/utils: fix types (Antoine du Hamel / #4212) - @uppy/companion: send expire info for non-multipart uploads (Antoine du Hamel / #4214) - docs: fix `allowedMetaFields` documentation (Antoine du Hamel / #4216) - meta: add more bundlers for automated testing (Antoine du Hamel / #4100) - @uppy/aws-s3-multipart: Fix typo in url check (Christian Franke / #4211) - meta: use current version of packages when testing bundlers (Antoine du Hamel / #4208) - meta: do not use the set-output command in workflows (Antoine du Hamel / #4175)
47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
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/v3.3.1/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/v3.3.1/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>
|
|
|
|
<!-- To support older browsers, you can use the legacy bundle which adds a global `Uppy` object. -->
|
|
<script nomodule src="https://releases.transloadit.com/uppy/v3.3.1/uppy.legacy.min.js"></script>
|
|
<script nomodule>
|
|
{
|
|
const { Dashboard, Webcam, Tus } = Uppy;
|
|
const uppy = new Uppy.Uppy({ debug: true, autoProceed: false })
|
|
.use(Dashboard, { trigger: "#uppyModalOpener" })
|
|
.use(Webcam, { target: Dashboard })
|
|
.use(Tus, { endpoint: "https://tusd.tusdemo.net/files/" });
|
|
|
|
uppy.on("success", function (fileCount) {
|
|
console.log(`${fileCount} files uploaded`);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|