forked from 23/resumable.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Version: 4.0.3
The GET is 204 OK.
But the POST was an error 500, it should not call fileSuccess.
upload?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=92&resumableTotalSize=92&resumableType=application/x-desktop&resumableIdentifier=92-computerdesktop&resumableFileCategory=default&resumableFilename=computer.desktop&resumableRelativePath=computer.desktop&resumableTotalChunks=1
Probably something in the lines
resumable.js/src/resumableChunk.ts
Lines 244 to 257 in 5f773cb
| this.xhr = new XMLHttpRequest(); | |
| // Progress | |
| this.xhr.upload.addEventListener('progress', (e: ProgressEvent<XMLHttpRequestEventTarget>) => { | |
| if (Date.now() - this.lastProgressCallback.getTime() > this.throttleProgressCallbacks * 1000) { | |
| this.fire('chunkProgress', this.message()); | |
| this.lastProgressCallback = new Date(); | |
| } | |
| this.loaded = e.loaded || 0; | |
| }, false); | |
| this.loaded = 0; | |
| this.pendingRetry = false; | |
| this.fire('chunkProgress', this.message()); | |
Metadata
Metadata
Assignees
Labels
No labels