Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

isErrorUploadResponse: successful response without success flag shouldn't fail #1325

Closed
@mrjoelkemp

Description

@mrjoelkemp

I have a successful xhr response that doesn't have the success property and is still marked as an erroneous response – triggering the uploader's onError callback. I would expect this response to succeed and trigger onComplete or onAllComplete.

Should this line

return xhr.status !== 200 || !response.success || response.reset;
change: !response.success to be response.success === false?

The XHR:

image

The response:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions