Why Google Drive Can't Share Your HTML File (And What Can)
File sharing sends the file. The viewer downloads it, opens it locally, and sees its contents.

The fundamental difference: files vs. pages
File sharing sends the file. The viewer downloads it, opens it locally, and sees its contents.
For PDFs, images, and Word documents, this is fine. The content is static. The file renders correctly whether it's on a server or your desktop.
For HTML: opening a downloaded file in a browser works for the simplest cases. But for any HTML with relative paths (linking to external CSS or JS files), external API calls, or content that should render differently based on a URL, downloading breaks it. And critically, a downloaded file has a file:// URL on the viewer's computer, not a shareable link. You can't paste file:///Users/sarah/Downloads/report.html into Slack.
What actually happens when you share HTML in Google Drive
Drive stores the raw HTML file. When a viewer clicks a shared link, one of two things happens:
- The file downloads automatically. They open it in a text editor and see markup.
- Drive shows a preview: a stripped, formatting-broken version of the page with most CSS and JavaScript removed.
There is no "render this HTML as a web page" button in Google Drive. Google Sites can host pages, but it requires rebuilding the content in Google's editor; you cannot upload an arbitrary HTML file and have it render correctly.
The same problem in Slack and email
Slack: HTML files uploaded to Slack show as file attachments. Recipients click Download. The file lands in their Downloads folder. To render it, they need to drag it into a browser window, a non-obvious step that most non-engineers won't attempt.
Email: Corporate email security policies block or quarantine HTML attachments in most enterprise environments. Even when they arrive, opening them locally breaks any JavaScript that makes network requests, because file:// URLs are subject to strict browser security restrictions.
Why HTML needs a web server
An HTML file is an application specification. It tells a browser what to render, what JavaScript to execute, and where to load resources from. That specification is only complete when it's served from a web server at a URL:
- Relative paths (
./styles.css,../data/chart.js) resolve correctly from a URL, not from a local file path. - External resources load correctly when the origin is a known URL, not
file://. - Interactivity that depends on the page's URL (tab routing, deep links, history) only works from a real URL.
- Sharing requires a link, not a file. You can't paste a local file path into Slack.
Gated publishing solves this: it stores the HTML on a web server and serves it at a URL that never changes. The viewer clicks the link and sees the rendered page, with all the JavaScript, CSS, charts, and interactivity intact. The gate (company auth) is applied at the URL level.
Display is the AI docs workspace that's open to all agents and people, and it serves every doc this way. Teammates comment and edit on the page, your agent reads the comments, and each new version keeps the same URL.
When file sharing is the right tool
For PDFs, spreadsheets, images, and Word documents, file sharing is correct and sufficient. The content is static. It renders the same way from a download as it would from a URL.
When the content is interactive HTML, it needs a web server. File sharing tools can't provide that.
FAQ
Can I just use Dropbox with a shared link?
Dropbox has the same limitation as Google Drive: it shares the file, not a rendered page. Clicking a Dropbox link for an HTML file downloads the file. You can use Dropbox Paper for Markdown content (it renders it), but not for arbitrary HTML.
What about Google Sites?
Google Sites lets you build a web page using Google's editor. You cannot upload an arbitrary HTML file and have it serve at a URL. If you want to host a Claude Code output, an agent-authored research dossier, or a D3 visualization, Google Sites requires rebuilding the content in its editor from scratch.
Does gated publishing store my files permanently?
Yes. Published artifacts persist until you delete them. The URL remains valid across billing cycles, team changes, and plan upgrades. Links shared in Slack threads and Notion pages continue working months later.
A full workspace behind every URL
Share with your team and clients
Invite people by email and give each one a role.
Go back to any version
Each publish and each edit saves a version. The link stays the same.
A Space for each team
Spaces and folders for each team and each client.
Search for people and agents
You and your agents search every doc you can open.
See who opened it
Each doc shows who opened it, and when.
Private betaInternal apps that get data from your sourcesConnectors for the tools your team uses
A URL for everything your agents make
Any agent, any model. Behind your company’s sign-in, at one flat price.
Free to start · Unlimited viewers