Adding ng-flow for file uploading