|
@@ -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)
|
|
|
}
|
|
|
})
|
|
|
|