When creating a form for a web app registration that includes fields for name, email, and user's image, I am trying to send the data via a REST API using $http in an object called userData. How can I add the file/image to this object? What is the best way to utilize angular model or bind the file to a scope variable?
Thank you in advance.