title: How to send multiple file upload post request using ng-flow?
body: <p>Here i am using ng-flow for multiple file upload <a href="https://github.com/flowjs/ng-flow" rel="nofollow">ng-flow</a>. <br>
  <strong>Html goes here</strong></p>
  
  <pre><code>  &lt;div  flow-init flow-files-submitted="img_upload($file, $event, $flow )" &gt;
  
          &lt;img flow-img="$flow.files[0]" /&gt;
          &lt;img flow-img="$flow.files[1]" /&gt;
          &lt;img flow-img="$flow.files[2]" /&gt;
          &lt;img flow-img="$flow.files[3]" /&gt;
          &lt;img flow-img="$flow.files[4]" /&gt;
          &lt;span class="btn btn-primary" flow-btn&gt;Upload File&lt;/span&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>controller</strong></p>
  
  <pre><code>   $scope.img_upload = function($file, $event, $flow) {
          console.log($flow.files);
          var url = '/api/media';
              $http.post(url,{
                  files:$flow.files,
                  type:'images'
              })
              .then(function(response) {
                  console.log(files);
                 console.log('success')
              }, function(response) {
  
              });
  
  
      }
  </code></pre>
  
  <p>I am getting the error as <code>TypeError: Converting circular structure to JSON</code> in chrome and <code>Error: cyclic object value</code> in firefox, when i upload images. how to do it , can anyone please help me.</p>