I have a form that gets a name and an image (logo). I'm using angularjs as client side language and dropzonejs as image upload library. when the user clicks on Edit, I want him to see the image preview that he has uploaded previously. I used this for doing so. The problem is if I upload a new image after I preload the initial image, I couldn't see new image's preview. here is my preload image code. (There is an angular directive for it)
if(scope.initialFileAddress != null && scope.initialFileAddress != "")
mockFile = {name: scope.initialFileName, size: 1000, type: "image/jpeg"}
this.addFile.call(this, mockFile)
this.options.thumbnail.call(this, mockFile, scope.initialFileAddress)