I have one issue. I am using ng-file-upload
to upload images using Angular.js. Here my problem is while user is selecting the file for second time on same file field the previous choosed image name is not showing. I am explaining my code below.
<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);">
Here suppose user selected one image lets say abc.png
for first time. Again user clicked on that same input field and when the file dialog box is opening the first image i.e-abc.png
is disappearing even user has not selected next image yet. similarly if user is clicked on cancel option in that file dialog box the previous choose image name is not showing in file field which should not happen.
Here I need until unless user has not selected the second image for the same file field the previous image name should display on that file field.Please help me.