DEV Community

Discussion on: Open Question: How can I upload files to S3 from Node.js, while having a progress bar and the ability to resize the image?

Collapse
 
th3n00bc0d3r profile image
Muhammad

Hello David,

Just by googling, I wonder I came back to your post. Ok I was having the same problem but I did figure out a couple things, that might be helpful to you.

My Use Case:

Angular ---> NodeJS ---> S3 Bucket AWS
S3 ---> NodeJS ---> Angular

From Angular to NodeJS it is simply a HTTP Event Progress
From NodeJS to S3 there is httpUploadProgress from S3

So to relay progress from NodeJS of S3 to Angular, I am using Socket.IO by creating an event and emitting it, this solves the problem of upload progress being emitted.

0%-----Angular to NodeJS----50% ---- NodeJS to S3----100%

If you need any further help, let me know, I am gladly to let you in for the solution.