I am using the npm package busboy to parse a multipart form request and a write stream to write the sent file to disc.
This works fine with small files, but when I try with a larger file (7MB) it seems that only about 5MB is written to disc and then it seems that things stall and it never finishes and no error is thrown. This works locally but when running on ECS is where the problem occurs.
The node server is running in a docker container on ECS
pipeline(fileStream, fs.createWriteStream(filePath), (err) => {
if (err) {
console.log("Pipeline failed", err);
} else {
console.log("Pipleline complete");
}
});
Any ideas??