(function () {
    'use strict';
    angular.module('ng-file-model', [])
    .directive("ngFileModel", [function () {
        return {
            scope: {
                ngFileModel: "="
            },
            link: function (scope, element, attributes) {
                element.bind("change", function (changeEvent) {
                    var reader = new FileReader();
                    reader.onload = function (loadEvent) {
                        scope.$apply(function () {
                            scope.ngFileModel = {
                                lastModified: changeEvent.target.files[0].lastModified,
                                lastModifiedDate: changeEvent.target.files[0].lastModifiedDate,
                                name: changeEvent.target.files[0].name,
                                size: changeEvent.target.files[0].size,
                                type: changeEvent.target.files[0].type,
                                data: loadEvent.target.result
                            };
                        });
                    }
                    reader.readAsDataURL(changeEvent.target.files[0]);
                });
            }
        }
    }]);
})();
@@ -12,30 +12,9 @@
 ) %7B%0A
-    'use strict';%0A    
+%09
 angu
@@ -45,20 +45,17 @@
 l', %5B%5D)%0A
-    
+%09
 .directi
@@ -87,24 +87,18 @@
 on () %7B%0A
-        
+%09%09
 return %7B
@@ -102,89 +102,50 @@
 n %7B%0A
-            scope: %7B%0A                ngFileModel: %22=%22%0A            %7D,%0A            
+%09%09%09scope: %7B%0A%09%09%09%09ngFileModel: %22=%22%0A%09%09%09%7D,%0A%09%09%09
 link
@@ -186,32 +186,20 @@
 utes) %7B%0A
-                
+%09%09%09%09
 element.
@@ -238,36 +238,21 @@
 vent) %7B%0A
-                    
+%09%09%09%09%09
 var read
@@ -274,36 +274,21 @@
 ader();%0A
-                    
+%09%09%09%09%09
 reader.o
@@ -322,32 +322,14 @@
 ) %7B%0A
-                        
+%09%09%09%09%09%09
 scop
@@ -355,90 +355,170 @@
 ) %7B%0A
-                            scope.ngFileModel = %7B%0A                                
+%09%09%09%09%09%09%09for (var i=0; i%3C changeEvent.target.files.length; i++) %7B%0A%09%09%09%09%09%09%09%09var eventSplit = loadEvent.target.result.split(',');%0A%09%09%09%09%09%09%09%09var ngFileModel = %7B%0A%09%09%09%09%09%09%09%09%09
 last
@@ -544,33 +544,33 @@
 nt.target.files%5B
-0
+i
 %5D.lastModified,%0A
@@ -573,40 +573,17 @@
 ed,%0A
-                                
+%09%09%09%09%09%09%09%09%09
 last
@@ -621,17 +621,17 @@
 t.files%5B
-0
+i
 %5D.lastMo
@@ -646,40 +646,17 @@
 te,%0A
-                                
+%09%09%09%09%09%09%09%09%09
 name
@@ -686,17 +686,17 @@
 les%5B
-0
+i
 %5D.name,%0A
     
@@ -695,40 +695,17 @@
 me,%0A
-                                
+%09%09%09%09%09%09%09%09%09
 size
@@ -735,17 +735,17 @@
 les%5B
-0
+i
 %5D.size,%0A
     
@@ -744,40 +744,17 @@
 ze,%0A
-                                
+%09%09%09%09%09%09%09%09%09
 type
@@ -784,17 +784,17 @@
 les%5B
-0
+i
 %5D.type,%0A
     
@@ -793,276 +793,217 @@
 pe,%0A
-                                data: loadEvent.target.result%0A                            %7D;%0A                        %7D);%0A                    %7D%0A                    reader.readAsDataURL(changeEvent.target.files%5B0%5D);%0A                %7D);%0A            %7D%0A        %7D%0A    %7D%5D);%0A%7D)();
+%09%09%09%09%09%09%09%09%09data: eventSplit%5B1%5D%0A%09%09%09%09%09%09%09%09%7D;%0A%09%09%09%09%09%09%09%09scope.ngFileModel.push(ngFileModel);%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%09element.value = '';%0A%09%09%09%09%09%09%7D);%0A%09%09%09%09%09%7D;%0A%09%09%09%09%09reader.readAsDataURL(changeEvent.target.files%5B0%5D);%0A%09%09%09%09%7D);%0A%09%09%09%7D%0A%09%09%7D;%0A

Update ng-file-model.js