Angular-17 Failed to load resource the server responded with a status of 404 Not Found

Discussão em 'Angular' iniciado por Khaled Shihab, Abril 6, 2025.

  1. I built an e-commerce site, but when I upload an image, it doesn’t update. The image path is stored in the database and fetched through the API.

    For example,From API got BuyerImage :
    "D:/shihab/Office/e-commerce/ecommerce/src/assets/Buyer\userA_638785018821957139.png"

    However, if I set it like this:
    src="assets/Buyer/userA_638785018821957139.png"
    I don't get the updated image when I try to update it.

    Everything works smoothly when I run ng serve, and there are no issues. However, I'm facing a problem elsewhere. I’ve tried to describe the issue as clearly as possible. If anything is unclear or you need more details, please feel free to ask for further clarification. I'd really appreciate your help in solving this!

    After Upload Image I got this problem

    after the update, with new Image path API response

    The image source paths are correct. But Image is not showing

    Continue reading...

Compartilhe esta Página