无法加载资源:服务器以404的状态响应(找不到),找不到图像吗?
I am developping a full stack E commerce web site , but there's a problem loading the images .
error msg
there's the path I made for one image,as an example
data base screenshot
and there's the path in angular project
path
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如您的图像所示,您正在从DB中返回错误的路径:您在
资产/产品/书籍中拥有它们...
,而不是资产/图像/产品/书籍...
您的数据库条目正在说明。因此,要么在db中更改image_url
,要么在Assets
下创建图像
文件夹,然后将您的products
文件夹移动到图像。
As your images show, you're returning the wrong path from DB: you have them in
assets/products/books...
and not inassets/images/products/books...
as your DB entries are telling. So either change yourimage_url
in DB, or createimages
folder underassets
and move yourproducts
folder intoimages
.