I am using ng2fileupload to upload the pic to the server the code is working the fine and the image is getting uploaded but I want to show the image before sending it to the server for uploading my code is given below
<img src="" >
<input type="file" placeholder="Upload file" ng2FileSelect [uploader]="uploader">
<button class="btn btn-success btn-s" role="submit" (click)="uploader.uploadAll()" [disabled]="passwordForm.valid">
Update
</button>
I am not able to get the path of the image so I am not able to send it to src of img tag. Any help is appreciated.