AngularJS: how to implement a simple file upload with multipart form?
I want to do a simple multipart form post from AngularJS to a node.js server, the form should contain a JSON object in one part and an image in the other part, (I'm currently posting only the JSON object with $resource) I figured I should start with input type="file", but then found out that AngularJS can't bind to that.. all the examples I can find are for wraping jQuery plugins for drag & drop. I want a simple upload of one file. I'm new to AngularJS and don't feel comfortable at all with writing my own directives. A real working solution with no other dependencies than angularjs (tested