Flow.js html5 file upload extension on angular.js framework http://flowjs.github.io/ng-flow/ The images are encoded into base64 format using the angularjs code below HTML code <div flow-init flow-files-submitted="$flow.upload()" flow-file-success="$file.msg = $message" flow-files-added="processFiles($files)" flow-name="obj.flow"> <!-- <input type="file" flow-btn/> --> Input OR Other element as upload button <span class="btn" flow-btn>Add File</span> <div> <div ng-repeat="file in $flow.files" class="gallery-box ng-scope"> <span class="title ng-binding">{{file.name}}</span> <div class="thumbnail" ng-show="$flow.files.length"> <img flow-img="file" src="file.image">...