Not able to upload file using Angular JS $http Post
<p>My Form data is: </p>

<pre><code> var fd = new FormData();
 //Take the first selected file
 fd.append("file", document.getElementById('file').files[0], "abc");
</code></pre>

<p>My API request is:</p>

<pre><code>var config = {
            withCredentials : false,
            transformRequest : angular.identity,
            headers : {
                'Content-Type': undefined
            }
        }
return $http.post(url, fd, config)
</code></pre>

<p>At the backend I'm still not getting any object in params.</p>

<p>Let me know why I'm not getting any form data at backend. </p>