mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 13:00:18 +00:00
example updated according to Progressbar changes
This commit is contained in:
parent
38c6ba7d11
commit
4f657a718d
1 changed files with 8 additions and 7 deletions
|
|
@ -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`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue