Skip to content

its not uploading the file completely, we need a Size parameter. #18

@saikatharryc

Description

@saikatharryc

HI devs,
@EragonJ @elarnellis @lexoyo @g33kidd @CrackerakiUA

I want to upload a file successfully, but it's not uploading completely. and there is no parameter to pass the file size.

the problem is: I'm trying to upload an 115KB file, it uploads only 15KB.
My code is :

let fileStream = fs.createReadStream("./upload/1-T-9cE7LBAwFEdE7V-67eDg.jpeg");
  let size = fs.statSync("./upload/1-T-9cE7LBAwFEdE7V-67eDg.jpeg").size;
api.createFile("/1-T-9cE7LBAwFEdE7V-67eDg.jpeg", fileStream, function(err, res, body) {
        console.log(err, res);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions