Object Storage

static html pages are downloaded instead of opened in browser

bobo17212

Hey all - I uploaded a simple index.html page to a storagegrid bucket.  When I point a browser to it, the browser attempts to download index.html, rather than render it.  From https://netappstoragegrid.wordpress.com/2016/03/16/using-storagegrid-webscale-to-host-static-websites-and-content/, it looks like serving stating HTML should be possible.  What am I missing?

 

Thanks

1 ACCEPTED SOLUTION

bobo17212

Just figured it out.  Gotta add --content-type "text/html" to aws s3api.

View solution in original post

1 REPLY 1

bobo17212

Just figured it out.  Gotta add --content-type "text/html" to aws s3api.

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public