获取图像404(未找到) [英] GET image 404 (Not Found)

查看:114
本文介绍了获取图像404(未找到)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的Web应用程序,某些图像不断给我404,但找不到.但是我可以在本地服务器上看到它们,并且在我推送代码时将它们上传到github.例如,在此页面中找不到任何图像. http://kyloxue.design/#/Project6?_k=gxpciy 我确保第一个图像可用正确的URL: https://github.com/alfance/alfance.github.io/blob/master/media/img/dme/all1.png 但是此页面中的大多数图像都可以正常工作. http://kyloxue.design/#/Project1?_k=nbyvg2

For my web app ,Some of the images keep giving me 404, which cannot be found. But I can see them on my local server, and they are uploaded to github when I push the code. for example, none of the images can be found in this page. http://kyloxue.design/#/Project6?_k=gxpciy I made sure that the first image is available with the correct url: https://github.com/alfance/alfance.github.io/blob/master/media/img/dme/all1.png but most of the images in this page work fine. http://kyloxue.design/#/Project1?_k=nbyvg2

有什么想法吗?

推荐答案

您的路径区分大小写.例如,您有一个图像引用:

Your paths are case sensitive. For example, you have an image referencing:

http://kyloxue.design/media/img/DME/all1.png

将其更改为 http://kyloxue.design/media/img/dme/all1.png ,并且可以正常工作.

Change that to http://kyloxue.design/media/img/dme/all1.png and it works.

这篇关于获取图像404(未找到)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆