mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 04:34:01 +00:00
| Package | Version | Package | Version | | ------------------ | ------- | ------------------ | ------- | | @uppy/companion | 4.9.0 | @uppy/locales | 3.3.1 | | @uppy/compressor | 1.0.3 | @uppy/tus | 3.3.0 | | @uppy/dashboard | 3.5.3 | uppy | 3.16.0 | | @uppy/image-editor | 2.2.0 | | | - @uppy/tus: Fix: Utilize user-defined onSuccess, onError, and onProgress callbacks in @uppy/tus (choi sung keun / #4674) - @uppy/dashboard: Make file-editor:cancel event fire when the Image Editor “cancel” button is pressed (Artur Paikin / #4684) - @uppy/companion: add missing credentialsURL for box (Mikael Finstad / #4681) - @uppy/companion: remove s3 endpoints if s3 disabled (Mikael Finstad / #4675) - meta: use latest Node.js version for tests (Antoine du Hamel / #4662) - meta: Improve Contributing.md (Evgenia Karunus / #4633) - @uppy/compressor: update file.meta.name after compression, becase format/extension might have changed (Artur Paikin / #4645) - @uppy/companion: Onedrive refresh tokens (Mikael Finstad / #4655) - @uppy/companion: catch "invalid initialization vector" instead of crashing (Mikael Finstad / #4661) - @uppy/image-editor: Improve image rotation (Evgenia Karunus / #4639) - @uppy/locales: Feature/updating i18n farsi (Parsa Arvaneh / #4638)
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.16.0/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.16.0/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.16.0/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>
|