Send $http post/get request using ajax or angularjs

If you are using ajax to send form data (especially if you have enctype="multipart/form-data" for file upload) then use following script to send your request.

For angular js (with in the controller)






In server side, to accept post request (for both ajax/angularjs)

Posted in AngularJs, Php and tagged , , .