example updated according to Progressbar changes

This commit is contained in:
Artur Paikin 2016-02-09 02:14:37 -05:00
parent 38c6ba7d11
commit 4f657a718d

View file

@ -4,14 +4,15 @@ import { DragDrop, Progressbar, Tus10 } from 'uppy/plugins'
const uppyOne = new Uppy({autoProceed: true, debug: true})
uppyOne
.use(DragDrop, {target: '.UppyDragDrop-One'})
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/', progress: '#UppyDragDrop-Two'})
.use(Progressbar)
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
.use(Progressbar, {target: '.UppyDragDrop-One .UppyDragDrop-progress'})
.run()
// const uppyTwo = new Uppy({debug: true})
// uppyTwo
// .use(DragDrop, {target: '#UppyDragDrop-Two'})
// .use(Tus10, {endpoint: 'http://master.tus.io:8080/files/', progress: '#UppyDragDrop-Two'})
// .run()
const uppyTwo = new Uppy({debug: true})
uppyTwo
.use(DragDrop, {target: '#UppyDragDrop-Two'})
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
.use(Progressbar, {target: '#UppyDragDrop-Two .UppyDragDrop-progress'})
.run()
// console.log(`Uppy ${uppyOne.type} loaded`)