By - Nic Raboy
When I build web applications, my least favorite part is always in the realm of file uploads. They are often complicated to do and take a lot of time. Pretty much every web application lately, regardless of what it is, requires file uploads, even if it is just to upload a profile picture.
Since I’m all about Angular 2 lately, I figured it would be great to show how to upload images (or any file) to a back-end. In this particular example I’m using Node.js.
Some things to be clear about up front. At the time of writing this, Angular 2 is in beta version 3. The Angular team claims that no breaking changes will be introduced in the betas, but I figured it is best we lay it out on the table that it could be a possibility. I also want to be clear that a lot of this code was co-produced with a friend of mine, Todd Greenstein.