javascript - ngf-thumbnail not working in safari latest using Angular.js -


i have issue. using ng-file-upload upload images using angular.js. here displaying image after upload using ngf-thumbnail not working in safari , win-7.its throwing below error.

 'undefined' not function (evaluating 'fileapi.readasdataurl(file, listener)')  

i explaining code below.

<div> <div ng-class="{'myerror': billdata.upload_{{$index}}.$touched && billdata.upload_{{$index}}.$invalid }"> <input type="file" class="filestyle form-control" data-size="lg" name="upload_{{$index}}" id="bannerimage_{{$index}}"  ng-model="mul.image" ngf-pattern="'image/*'" accept="image/*" ngf-max-size="2mb" ngf-select="onfileselect1($index);"> <input type="text" class="form-control" name="comment" id="comment" placeholder="comment" ng-model="mul.comment"> <div style="clear:both;"></div>  </div> </div>  <span class="input-group-btn" ng-show="mulimage.length>0"> <img ngf-thumbnail="mul.image" name="pro" border="0" style="width:32px; height:32px; border:#808080 1px solid;" ng-if="mul.image !=null"><img ng-src="upload/{{mul.filename}}" name="pro" border="0" style="width:32px; height:32px; border:#808080 1px solid;" ng-if="mul.filename!=''"> <input type="button" class="btn btn-success" name="plus" id="plus" value="+" ng-click="addnewimagerow(mulimage);" ng-show="$last"> <input type="button" class="btn btn-danger" name="minus" id="minus" value="-"  ng-show="mulimage.length>1" ng-click="deletenewimagerow(mulimage,$index);">  </span> 

its working in other browser not working in environment.please me resolve issue.


Comments