Angular js file upload to php server

     

I am developing an e-commerce site where a logged in admin needs to add new a product. The product form has product description and product image to upload. What I want is to catch all form data in an angular controller and pass them to a service to to process. So far I have failed.


Here is the HTML markup:


      

The form is wrapper in an angular function. ng-submit="addprovm.CreateProduct()"


In the my controller I have following -


function addproductCtrl($http){   var addprovm = this;
// product details.   addprovm.product = {   name: ""   price: ""   category: