input 图片上传,第二次上传同一张图片失效

 <input type="file" onchange="angular.element(this).scope().addPhoto(this,event)" accept="image/*" id="carPhotoFile">

在js 的成功回调函数中

$scope.addPhoto = function(file,e){

    //成功的回调

  e.target.value = ''; //置为空

}

原文地址:https://www.cnblogs.com/Byme/p/9086962.html