{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/979","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/979/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/979/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/979","id":103918414,"number":979,"title":"Send array is treated like single file","user":{"login":"NetanelBasal","id":6745730,"avatar_url":"https://avatars.githubusercontent.com/u/6745730?v=3","gravatar_id":"","url":"https://api.github.com/users/NetanelBasal","html_url":"https://github.com/NetanelBasal","followers_url":"https://api.github.com/users/NetanelBasal/followers","following_url":"https://api.github.com/users/NetanelBasal/following{/other_user}","gists_url":"https://api.github.com/users/NetanelBasal/gists{/gist_id}","starred_url":"https://api.github.com/users/NetanelBasal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetanelBasal/subscriptions","organizations_url":"https://api.github.com/users/NetanelBasal/orgs","repos_url":"https://api.github.com/users/NetanelBasal/repos","events_url":"https://api.github.com/users/NetanelBasal/events{/privacy}","received_events_url":"https://api.github.com/users/NetanelBasal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-30T11:00:40Z","updated_at":"2015-08-30T17:38:59Z","closed_at":null,"body":"I have three file uploads buttons, when someone choose file i push the file to an array and after he clicks on submit i send the files to my rails server, but the problem is that in my server i see one file and not the array of files.\r\n\r\n```html\r\n           <input type=\"file\" name=\"file\" ngf-select=\"sc.pushFile($file)\">\r\n           <input type=\"file\" name=\"file\" ngf-select=\"sc.pushFile($file)\">\r\n           <input type=\"file\" name=\"file\" ngf-select=\"sc.pushFile($file)\">\r\n```\r\n\r\nController:\r\n```javascript\r\n\r\n  pushFile( file ) {\r\n     this.files.push(file);\r\n  }\r\n\r\n submit() {\r\n    this.myService.updateAction(this.files);\r\n }\r\n\r\n```\r\n\r\n```javascript\r\n updateAction(files) {\r\n  this.Upload.upload({\r\n          url   :  url,\r\n          fields: { 'perform': 'submit' },\r\n          method: 'PUT',\r\n          file  : files\r\n        }).progress(function( evt ) {\r\n          var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);\r\n          console.log('progress: ' + progressPercentage + '% ' + evt.config.file.name);\r\n        }).success(function( data, status, headers, config ) {\r\n          console.log('file ' + config.file.name + 'uploaded. Response: ' + data);\r\n        }).error(function( data, status, headers, config ) {\r\n          console.log('error status: ' + status);\r\n        })\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/136162337","html_url":"https://github.com/danialfarid/ng-file-upload/issues/979#issuecomment-136162337","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/979","id":136162337,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2015-08-30T17:38:59Z","updated_at":"2015-08-30T17:38:59Z","body":"How the request on the browsers network tab look like? Does it have all the files, if it does then it is a server issue."}}