title: how to upload file using Angularjs, multipart/form-data
body: <p>i want to upload image using Angularjs anyone know how do this..REST API wants</p>
  
  <blockquote>
    <p>Content-Type:multipart/form-data</p>
  </blockquote>
  
  <pre><code>www.abc.com/images/id
  Request Body
  {
      // --Boundary_1_1626119499_1392398808202
      // Content-Type: image/png
      // Content-Disposition: form-data; filename="ducky.png"; modification-date="Wed, 05 Nov 2016 19:53:17 GMT"; size=713915; name="upload_image"        
  
      // {binary data truncated for display}
  }
  </code></pre>
  
  <p>my Question is how to upload image file using above rest API, how to assign  $scope.tempObject = my Upload image Path</p>
  
  <pre><code> $scope.UploadImage =  function () { 
          var config = {headers:  {      
      'Content-Type': 'multipart/form-data'
  
         }
          }
  
      $http.post(properties.customerUploadImage_path + "/"+checkprofile,$scope.tempObject,config).success(function (response) { 
   Console.log('Uploaded');
      });
  
  
      } 
  </code></pre>