0
我試圖將圖像添加到指向存儲桶中稱爲圖像的文件夾的根桶中的index.html。但圖像不顯示,並有這種奇怪的解析:AWS S3中的圖像無法加載
<Error>
<Code>
PermanentRedirect
</Code>
<Message>
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
</Message>
<Bucket>
images
</Bucket>
<Endpoint>
s3.amazonaws.com
</Endpoint>
<RequestId>
...
</RequestId>
<HostId>
...
</HostId>
</Error>
爲什麼它使圖像成桶?如果我把圖像放在水桶裏,它會顯示!
什麼是您用來查看圖像的URL?你是以編程方式上傳圖片嗎?如果是這樣,你能分享你的代碼嗎? –
我剛剛打開index.html並右鍵單擊未顯示的圖像並獲得了上面的代碼。這是一個簡單的html文件;沒有任何事情以編程方式完成此外,我更改了存儲桶策略,以授予所有所有者對象的公共訪問權限。 – skrubber
您的HTML標記中「」的'src'屬性的值是多少? –