Skip to content

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

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);
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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