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