I changed my profile image in Angular project, and it's already saved in Firebase storage but the picture still shown antonym, can someone explain me please? Here is the HTML file and .ts file. It's updated successfully, but the URL of image show me an antonym image.
<div class="container">
<article class="uk-comment">
<header class="uk-comment-header">
<div class="uk-grid-medium uk-flex-middle" uk-grid>
<div class="uk-width-auto">
<img class="uk-comment-avatar" [src]="dataProfile.image" width="200" height="200" alt="">
</div>
<button class="btn btn-info" data-bs-toggle="modal" data-bs-target="#exampleModal2">update image</button>
</div>
</div>
</header>
</article>
</div>
<div class="modal fade" id="exampleModal2" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<input type="file" accept=".jpg ,.png" (change)="uploadImage($event)">
<div *ngIf="persentages | async as pct">
<div *ngIf="pct == 100" class="alert alert-success" >Upload Successfully</div>
<progress
id="js-progressbar"
class="uk-progress"
[value]="pct"
max="100"
></progress>
</div>
</form>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
uploadImage(event){
const id=Math.random().toString(36).substring(2)
this.ref =this.fst.ref(id)
this.task =this.ref.put(event.target.files[0])
this.persentages=this.task.percentageChanges()
this.task.then((data)=>{
data.ref.getDownloadURL().then(url=>{
this.fs.collection("users").doc(this.dataProfile.uid).update({
image:url
})
})
}).then(()=>{
window.location.reload()
})
}
}