Upload a site
A site is a static HTML bundle with index.html at its root. Choose Upload site, name it, decide on JavaScript, and Drive registers it in Sites.
本文目前仅提供英文版本。阅读英文版。
- Drive
- 网页版
Choose New, then Upload site. Name the site, drop in a folder or a ZIP with index.html at its root, and choose Add. Drive registers it and lists it under Sites.
This is the route for a site you already built. To have one written for you from a description and a few files, see Create a site with AI.
What the bundle must contain
- An entrypoint at the root of the site:
index.html,index.htmorindex.xhtml. A ZIP with a single top-level folder is unwrapped first, so the entrypoint may sit inside that one folder. - Only static assets. Drive accepts
html,htm,xhtml,css,js,mjs,json,md,txt,csv,pdf,png,jpg,jpeg,gif,webp,avif,svg,ico,woffandwoff2. - No executables. Files ending
bat,cmd,com,exe,jar,msi,php,ps1,scr,shorvbsare refused. - Nothing that still needs building. Upload the built output, not the source project.
Limits: at most 50,000 files, 5 GiB in total, a path depth of 16, a path length of 240 characters and 96 characters per path segment. Empty files are refused.
Upload it
- Choose New, then Upload site. The panel title is Upload site package.
- Type the name into Site name. It is required, and Add stays disabled until it has a value.
- Leave Allow bundled JavaScript unchecked unless the site needs the scripts inside its own bundle. External scripts are never allowed. The badge next to the checkbox reads Scripts detected, Scripts allowed or Scripts blocked to say what the current setting does.
- Drop the folder or ZIP onto the panel, or choose it from your device. The prompt reads Drop a ZIP or folder that includes the main HTML file and supporting assets, or click to choose from your device.
- Read the selection summary. Site detected or Site ZIP detected means Drive found the entrypoint. No site detected means it did not, and the bundle will upload as an ordinary folder or archive instead.
- Choose Add.
Drive creates the site, uploads the assets, and registers the file list against it. It appears in Sites, which lists the HTML sites you built here or uploaded.
Open it and share it
Open a site from Sites to see its detail page and its assets. The item's actions offer a Public link, which grants read access to anyone holding the link and expires after 30 days. Scripts are switched off on the public link unless the site was uploaded with bundled JavaScript allowed, and a site whose script policy is still under review cannot be shared publicly until that finishes.
Replace a site with a new version
Use Update on the site. The panel warns that uploading creates a new revision and that the current site changes once the new bundle is registered. Upload the whole bundle again; Drive keeps the same site and adds a revision.
If it did not work
- A message that the archive must contain
index.html,index.htmorindex.xhtmlat the site root. The entrypoint is missing or nested too deep. Zip the folder that contains it. - A message that the bundle contains an unsupported site asset type. It names a file whose extension is not on the list above. Remove it or convert it.
- A message that the bundle contains an executable file that cannot be registered as a site asset. It names a blocked extension.
- A message that the file could not be read as a valid ZIP archive means the archive is damaged. Rebuild it.
- The files uploaded, but the site could not be registered. means the assets arrived but the site record did not. Reload Sites before uploading again.
- To change the content afterwards, see Change a site in plain English.
- To start from a description instead of a bundle, see Create a site with AI.
相关页面
- Create a site with AI — Describe the site you want, attach the images and documents it should be built from, and Drive publishes a first version you can open and keep editing.
- Change a site in plain English — Edit with AI on a site's details page takes a plain-English instruction; Edit site opens the file editor. Changes go live only when you publish.
- Share a file or folder by link — Copy link hands out an Evolve link that opens only for the access list. Anyone with the link mints a public link for a file, and expires after 30 days.
- Upload failed — Every upload failure names a message and a recommended action. This page groups the messages by cause and says which ones are worth retrying.