Skip to content

fileSuccess is called when POST returns error 500 #44

@williamdes

Description

@williamdes

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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions