transloadit / uppy
- вторник, 19 июля 2016 г. в 03:13:00
JavaScript
🐶 The next open source file uploader for web browsers — a work in progress
Uppy is (going to be) a cool JavaScript file uploader that fetches files for you from local disk, Google Drive, Dropbox, Instagram, remote URLs, cameras and other exciting locations, and then uploads them to wherever you want. Uppy is being developed by the Transloadit team because we want file uploading experience to be better — both for users and developers.
Check out uppy.io for docs, API, examples and stats.
It’s easy to start using Uppy, we recommend installing from npm with npm install uppy
and then:
import Uppy from 'uppy/core'
import { DragDrop, Tus10 } from 'uppy/plugins'
const uppy = new Uppy({wait: false})
const files = uppy
.use(DragDrop, {target: '#upload-target'})
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
.run()
But if you like, you can also use a pre-built bundle, in that case Uppy
will attach itself to the global window
object:
<script src="uppy.min.js"></script>
<script>
var uppy = new Uppy.Core({locales: Uppy.locales.ru_RU, debug: true});
uppy.use(Uppy.plugins.DragDrop, {target: '.UppyDragDrop'});
uppy.use(Uppy.plugins.Tus10, {endpoint: 'http://master.tus.io:3020/files/'});
uppy.run();
</script>
website/src/guide/contributing.md
website/src/api/architecture.md
CHANGELOG.md