简体   繁体   English

上载到服务器后,并非所有图像都会加载到站点上

[英]Not all images load on site once uploaded to server

I have been building a gallery site and in the interest of time I purchased a template. 我一直在建立画廊网站,为了节省时间,我购买了模板。 All of the code worked off-line and on my computer. 所有代码都可以在我的计算机上离线运行。 Now that I have uploaded the website some images show up and some do not. 现在,我已经上传了网站,其中显示了一些图片,而有些则没有。

Here's what I do know: All images are on the server, I verified this. 这就是我所知道的:所有图像都在服务器上,我对此进行了验证。

I must be missing something in the tags because they all appear to be uniform to me, but in spite of this two images in particular show up while the remaining 25 of so do not. 我必须在标签中缺少某些内容,因为它们对我来说似乎都是统一的,但是尽管有这两个图像特别显示,但其余25个图像却没有。

The website in question is http://www.ddcr2.net 有问题的网站是http://www.ddcr2.net

Here's a section of code from one of the two images that actually display: 这是实际显示的两个图像之一的一部分代码:

<div class="gallery_item">
<div class="gallery_item_padding">
<div class="gallery_item_wrapper"><a href="http://ddcr2.net/img/gallery/600_600/equipmentzoom4.jpg" class="prettyPhoto" data-rel="prettyPhoto[gallery1]" title=""></a>
<img class="gallery-stand-img" src="http://ddcr2.net/img/gallery/570_570/equipment4.jpg" alt="" width="570" height="570">
<div class="gallery_fadder"></div>
<span class="gallery_ico"></span>
</div></div></div>

And here's a section of code from one that does not display: 这是不显示的部分代码:

<div class="gallery_item">
<div class="gallery_item_padding">
<div class="gallery_item_wrapper"><a href="http://ddcr2.net/img/gallery/600_600/equipmentzoom1.jpg" class="prettyPhoto" data-rel="prettyPhoto[gallery1]" title=""></a>
<img class="gallery-stand-img" src="http://ddcr2.net/img/gallery/570_570/equipment1.jpg" alt="" width="570" height="570">
<div class="gallery_fadder"></div>
<span class="gallery_ico"></span>
</div></div></div>

Your server isn't giving back the images, just try this direct-link (extracted from a img-tag): click . 您的服务器没有退还图像,只需尝试以下直接链接(从img标签中提取): 单击 In your position I would do the following things: 在您的位置上,我将执行以下操作:

  • Are the files really on the server? 文件确实在服务器上吗? The path looks like a plain folder-structure, so you should be able to clarify this very easily. 该路径看起来像一个普通的文件夹结构,因此您应该能够很容易地阐明这一点。
  • Is there a pattern in the file size? 文件大小有规律吗? Are the denied files larger than the other? 被拒绝的文件是否大于其他文件?
  • Are all files .jpg? 所有文件都是.jpg吗? Not .jpeg, .png, etc? 不是.jpeg,.png等?
  • Are permissions on file-level populated correctly? 是否正确填充了文件级权限?

Edit 编辑

Questioner was able to fix it, so the link now points to a valid image. 发问者能够对其进行修复,因此该链接现在指向有效的图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM