Get started with uppy CDN
MIT licensed
Uppy is a progressive library for handling file uploads in web applications.
Tags:- file uploader
- drag-drop
- progress
- preview
- resumable uploads
- xhr
- tus
- s3
- google drive
- dropbox
- webcam
Stable version
Copied!
How to start using uppy CDN
const Uppy = window.Uppy || {}; // Ensure Uppy is defined
if (navigator.appCaches) {
navigator.appCache.check('uppy-metaswift').then((appCache) => {
if (appCache.status === 'loading') {
appCache.addEventListener('updateready', () => {
window.Uppy = require('uppy').default;
init();
});
} else {
window.Uppy = require('uppy').default;
init();
}
});
} else {
window.Uppy = require('uppy').default;
init();
}
function init() {
const uploader = Uppy.Core({
target: '#upload-button',
id: 'myUploader',
meta: {
name: 'My Uploader',
description: 'A simple file uploader using Uppy',
},
});
uploader.use(Uppy.DragDrop, { target: '#upload-container' });
uploader.use(Uppy.XHRUpload, { endpoint: '/api/upload' });
uploader.on('file-added', (file) => {
console.log('File added:', file.name);
});
uploader.on('upload-completed', (result) => {
console.log('Upload completed:', result);
});
}
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
1.10.1
1.11.0
1.12.0
1.12.1
1.13.0
1.13.1
1.13.2
1.14.0
1.14.1
1.15.0
1.16.0
1.16.1
1.17.0
1.19.0
1.19.1
1.19.2
1.20.0
1.20.1
1.20.2
1.21.0
1.21.1
1.21.2
1.22.0
1.23.0
1.23.1
1.23.2
1.23.3
1.24.0
1.24.1
1.25.0
1.25.1
1.25.2
1.26.0
1.26.1
1.27.0
1.28.0
1.28.1
1.29.0
1.29.1
1.30.0
1.31.0
1.31.1
2.0.0
2.0.0-alpha.0
2.0.1
2.0.2
2.1.0
2.1.1
2.10.0
2.11.0
2.12.0
2.12.1
2.12.2
2.12.3
2.13.0
2.13.1
2.13.2
2.13.3
2.13.4
2.13.5
2.13.6
2.13.7
2.13.8
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.3.1
2.3.2
2.3.3
2.4.0
2.4.1
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.9.0
2.9.1
2.9.2
2.9.3
2.9.4
2.9.5
3.0.0
3.0.0-beta
3.0.0-beta.1
3.0.0-beta.2
3.0.0-beta.3
3.0.0-beta.4
3.0.0-beta.5
3.0.1
3.1.0
3.1.1
3.10.0
3.11.0
3.12.0
3.13.0
3.13.1
3.14.0
3.14.1
3.15.0
3.16.0
3.17.0
3.18.0
3.18.1
3.19.0
3.19.1
3.2.0
3.2.1
3.2.2
3.20.0
3.21.0
3.22.0
3.22.1
3.22.2
3.23.0
3.24.0
3.24.1
3.24.2
3.24.3
3.25.0
3.25.1
3.25.2
3.25.3
3.25.4
3.25.5
3.26.0
3.26.1
3.27.0
3.27.1
3.27.2
3.27.3
3.27.4
3.3.0
3.3.1
3.4.0
3.5.0
3.6.0
3.6.1
3.7.0
3.8.0
3.9.0
3.9.1
4.0.0
4.0.0-beta.1
4.0.0-beta.10
4.0.0-beta.11
4.0.0-beta.12
4.0.0-beta.13
4.0.0-beta.14
4.0.0-beta.2
4.0.0-beta.3
4.0.0-beta.4
4.0.0-beta.5
4.0.0-beta.6
4.0.0-beta.7
4.0.0-beta.8
4.0.0-beta.9
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.1.0
4.1.1
4.2.0
4.2.1
4.3.0
4.4.0
4.4.1
4.5.0
4.6.0
*** 4.7.0