I have a form which contains name, email, and user's image for a web app registration. I send data via a REST API with $http in an object called userData. How can I add to this object the file / image? How to use angular model or bind the file to a scope variable?
Thanks in advance.