我缺少什么权限或者是其他内容?S3链接时自动下载图片
我们使用S3进行存储并为中等流量的网站提供图像。 我们构建了一个自定义缩略图滑块,可将小缩略图图像以不同分辨率链接到较大的滑块图像。
在S3进场之前,图像会互相链接。现在,一旦缩略图被点击,图像就会自动下载,而不仅仅是链接到较大的图像。有什么想法吗?
这是代码,但这只是一个真正的S3问题。谢谢!
<div class="thumbnails" itemscope itemtype="http://schema.org/ImageGallery">
<ul id="easy-slide">
<i id="prev" class="fa fa-arrow-circle-o-left" aria-hidden="true"></i>
{thumbnails}
<li itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<a href="{thumbnails:large}" itemprop="contentUrl" data-size="500x500">
<img src="{thumbnails:thumb}" height="100px" width="100px" itemprop="thumbnail" alt="Image description" />
</a>
</li>
{/thumbnails}
<i id="next" class="fa fa-arrow-circle-o-right" aria-hidden="true"></i>
</ul>
</div>
执行图像有正确的MIME类型?图像/ JPEG或图像/ PNG等?如果没有,您需要更改或重新上传新的MIME类型 –
有没有办法为整个文件夹或存储桶策略设置?我不确定如何检查。 –
检查确定。使用'curl -I -v http:// www.example.com/image.jpg'并确认'Content-Type' –