NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Object Storage

static html pages are downloaded instead of opened in browser

bobo17212
3,696 Views

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
3,689 Views

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

View solution in original post

1 REPLY 1

bobo17212
3,690 Views

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

Public