title: AngularJs FTP multiple files
body: <p>I am trying to upload multiple files using angular js  but the values are not getting stored in the model filestore</p>
  
  <p>Htmlcode:</p>
  
  <pre><code> &lt;div ng-app="myApp"&gt;
     &lt;div ng-repeat="file in filelist"&gt;
            &lt;label&gt;{{file.name}} &lt;/label&gt; 
            &lt;input type="file" ng-model="filestore[$index]" /&gt;
     &lt;/div&gt;  
  &lt;/div&gt;
  
  &lt;div&gt;
       &lt;input type="button" value="submit" ng-click="savefiles(filestore)"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>js:</p>
  
  <pre><code> myApp.controller('uploadCtrl', function ($scope,$http) {
  
   //list of file names
   $scope.filelist = ["file1", "file2", "file3"];
  
   //save file list
   $scope.savefilelist = function(filestore) {
      $http({
          method: 'POST',
          url: '/api/SaveFiles',
          data: filestore
      });
   };
  </code></pre>
  
  <p>})</p>