title: setting Content-Type: in angular js post request
body: <pre><code>&lt;input type="file" ng-model="articleimg" placeholder="upload related img"&gt;    
  
  $http.post($scope.base_url+'create.php', 
              {params {view:'view',articleimg:$scope.articleimg}})
              .then(function(response){
                      console.log(response);
      });
  </code></pre>
  
  <p>I would like to know how and where to specify
  the content-type: multipart/form-data in this angularjs post request?</p>
  
  <p>Please assist.
  the default seems to be "application/json, text/plain,"
  which does not work with the image/file uploads.</p>
  
  <pre><code>if(isset($_FILES['articleimg'])===true ){
    echo "sucessfull";
  }else echo "unsuccessfull";
  </code></pre>
  
  <p>the code above alway echos unsuccessfull.</p>