I used uplink to create a share:
uplink share --dns www.my_web_address.com sj://my_bucket_name/ --base-url https://link.storjshare.io
I updated my dns settings:
|my_web_address.com |IN|CNAME|link.storjshare.io.|
|—|—|—|—|
|txt-www.my_web_address.com|IN|TXT |storj-root:my_bucket_name|
|txt-www.my_web_address.com|IN|TXT |storj-access:jw4zfxb5q2zs4e3uinc6sestwxaq|
Problem: When I navigate to www.my_web_address.com, the index.html file is not displayed - it only downloads the file.
If you try curl [youraddress]/index.html -vvv what response headers are showing for you? I am interested if Content-Type was set incorrectly, which is one reason the browser will not recognise it as HTML and download the file instead.
Could you show the output of uplink meta get sj://path/to/file/index.html?
It seems like linksharing might not be detecting the right content type. It tries to auto-detect based on the extension. If Content-Type is set in metadata (or content-type in lowercase put by S3 clients), it will use that instead of guessing.
We have a fix on the way around these content types to auto-detect, but one way to ensure the file gets the right type is to set --metadata '{"Content-Type":"text/html"} when uploading the file with uplink.
If using S3, you can set content type on an existing file by aws s3 cp with the same source and destination, e.g. aws s3 cp s3://path/to/file s3://path/to/file --content-type text/html. The same flag can be used when uploading a new file as well.