Skip to content

Can't upload empty file when using asyncReadFileFn hook [v3 regression] #375

Open
@bertrandg

Description

@bertrandg

Hi,

I'm using V3 branch since multiple months and it works well but i've discoved this small regression.
I'm unable to send empty files when using asyncReadFileFn hook.

Investigating, it seems to come from there:

if (data && data.size > 0) {

From what i've seen convert to this fix it:
if (data && (data.size > 0 || this.fileObj.size === 0)) {

But i would like to have a feedback from you @drzraf before making an MR.

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