Hi Jeremy,
One possible problem is that your objects may not have Content-Type "text/html" which would explicitly tell the browser to interpret their contents as HTML documents. You can examine the content-type setting on those objects using this command:
gsutil ls -L gs://<bucket>/<object>
If you confirm that hypothesis, you can update the content type setting for those objects with this command:
gsutil setmeta -h "Content-Type: text/html" gs://<bucket>/<object>
The syntax above is new so I'd suggest updating your copy of gsutil to the latest version (3.17) before trying the setmeta command. You can check your current version with the command gsutil version and you can update to the latest version with the command gsutil update.
I'm a little concerned about those funny characters in the screenshot you shared, which makes me also wonder if there's some sort of text encoding problem in your objects, but let's check the content-type issue first.
Hope that helps,
Marc
--
Marc Cohen
Google Cloud Storage Team
On Sat, Sep 15, 2012 at 11:19 AM, J
<ad...@qesneacg.org> wrote:
Hi,
on website-configuration :
I am trying to use it as a place to host website and upload a few html file to a bucket (as in pic1), while some of the file can be correctly display as a webpage, others just display in plain text (as in pic2) and cannot decode the html to render the webpage.
I am using Google Chrome 21.0.1180.89 m to browse the link and encountered the problem, but when I switch to Firefox 12.0 those files are ok...
Is there a problem with my settings ? Please kindly advise what I should do ... thanks !
Jeremy