Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
why my profil image still anonym despite changes?

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()
})
}
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!