I'm feeling stupid but i dont find what is the problem here
var images = [];
angular.forEach($scope.flow.images.files, function (flowFile, i) {
    var fileReader = new FileReader();
    fileReader.onload = function (event) {
        var uri = event.target.result;
        images.push(uri);
        console.log(images.length); // First iteration length = 1, second iteration length = 2 
    };
    console.log(images.length); // Always shows 0
    fileReader.readAsDataURL(flowFile.file);
});
Can anyone help me understand?
 
    