Uploading html file to share

Anonymous
2023-07-03T13:47:17+00:00

I'm trying to use OneDrive to share an html file (including all CSS, Images, js folders and index.html) so that it can be opened in a browser by the recipient but what they get, after clicking on the downloaded index.html, is the html code itself and not the actual page loading in a browser. All suggestions gratefully received.

Microsoft 365 and Office | OneDrive | Other | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2023-07-04T16:51:13+00:00

    My approach to this would be to zip all the files up and share that. The sharee can then download the file and unzip it on their own machine and access it locally.

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-07-03T16:34:47+00:00

    Hi. I"m Brian.

    I don't believe you can accomplish what you want. OneDrive isn't a web server and doesn't honor the HTML codes that a browser and server exchange with each other. If I'm wrong, I"m sure someone will say so.

    0 comments No comments
  2. Anonymous
    2023-07-04T11:06:28+00:00

    Hi. I"m Brian. I don't believe you can accomplish what you want. OneDrive isn't a web server and doesn't honor the HTML codes that a browser and server exchange with each other. If I'm wrong, I"m sure someone will say so.

    Appreciate you taking the time to respond Brian. So, an Ajar productions tutorial video says that you use Dropbox as a file sharing service (or Google Drive) but not sure she's actually suggesting it's use as a web server. See here at 1:28:

    https://www.youtube.com/watch?v=trFNiE4eqkg

    0 comments No comments