Question

When I click on a link to a html file i've uploaded to Sharepoint 2013 ONLINE, it forces me to download it rather than opening it directly in the browser. I understand this is because SharePoint Online is adding the header X-Download-Options:noopen and text/html isn't in the MIME types.

So I can download the html, and open it from my Downloads folder. However it's, understandably not downloaded the images, etc referred to in the page, making it useless.

There's loads on google about Sharepoint and mime types (mainly relating to pdfs), but very little on Sharepoint 2013 ONLINE. I have no way of administering the Site Collection of 'the farm'.

I've tried using Powershell, but all the Sharepoint specific features e.g. Get-SPWebApplication aren't available to my client PC. I've tried Enter-PSSession to connect Powershell remotely, but it doesn't connect.

I'm new to Sharepoint Online and to Powershell and am really struggling with this.

Any solutions, tips or tricks appreciated.

Thanks

Ian

No correct solution

OTHER TIPS

As for Powershell: you have a very limited number of cmdlets. Usually you differentiate between SP cmdlets (for server) and SPO cmdlets (for Sharepoint Online). Here is a full list of cmdlets: http://office.microsoft.com/en-001/sharepoint-help/introduction-to-the-sharepoint-online-management-shell-HA102915057.aspx

To connect to SPO you need the Sharepoint Management Shell and connect-sposervice: http://technet.microsoft.com/en-us/library/fp161392

As for the initial problem: have you checked with the site content types and site features if there's something that could help you?

Are you using site administrator credentials? Check in the Portal who is responsible for the site collection you are trying to access.

I am guessing you have one global admin responsible for everything and probably owner of all site collections. Use global admin to make sure. You can test credentials:

    $cred=get-credential
    connect-msolservice -credential $cred
    get-msoldomainverificationDns

Enter the domain. If it throws an error, these are not admin credentials.

You cannot open HTML files directly from SharePoint Online. Here are a couple of workarounds that work out just fine.

  1. Open the library in explorer view and then open the htm file from there.

  2. Convert the HTML file into ASPX.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top