mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 18:29:09 +00:00
debug: emit on timeout
This commit is contained in:
parent
04109b6847
commit
2bdad34ebf
2 changed files with 8 additions and 8 deletions
|
|
@ -223,8 +223,6 @@ class Uppy {
|
|||
totalProgress: totalProgress,
|
||||
files: updatedFiles
|
||||
})
|
||||
|
||||
console.log(this.getState().totalProgress)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -193,12 +193,14 @@ module.exports = class Tus10 extends Plugin {
|
|||
this.core.log(`Upload progress: ${progress}`)
|
||||
console.log(file.id)
|
||||
|
||||
this.core.emitter.emit('core:upload-progress', {
|
||||
uploader: this,
|
||||
id: file.id,
|
||||
bytesUploaded: bytesUploaded,
|
||||
bytesTotal: bytesTotal
|
||||
})
|
||||
setTimeout(() => {
|
||||
this.core.emitter.emit('core:upload-progress', {
|
||||
uploader: this,
|
||||
id: file.id,
|
||||
bytesUploaded: bytesUploaded,
|
||||
bytesTotal: bytesTotal
|
||||
})
|
||||
}, 100)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue