Guide · Troubleshooting

Why your ChatGPT website shows a blank page (and the 8 fixes)

Most blank pages happen because the HTML file references paths the browser can't resolve - an absolute path, a missing index.html, or a file that was never uploaded. Here are the eight most common causes and how to fix each one.

GuyUpdated 23 Aug 20266 min read
FIX 1 OF 8

Missing or misnamed index.html

Symptom
Your site shows a directory listing of files instead of a web page, or returns a 404 Not Found error.
10-second check
Open the ZIP or folder you uploaded. Is there a file called exactly index.html at the top level - not inside a subfolder, and not named something like home.html?
Fix
Rename your main HTML file to index.html. If ChatGPT gave it a different name, rename it before uploading. If the file is inside a subfolder, move it to the root of your upload.
How Upfling tells you
Upfling detects this during upload. When no index.html is found, the upload flow asks you to choose a homepage from the files you uploaded. If you skip that step, visitors see a directory listing instead of your page.
my-site.upfling.site
images/
📄 index.html📄 styles.css📄 app.js
Without an index.html, visitors see a raw file listing.
FIX 2 OF 8

Absolute paths instead of relative paths

Symptom
The HTML page loads, but the page appears unstyled - no CSS, no images, possibly completely blank if all content is loaded via JavaScript.
10-second check
Open your HTML file in a text editor and search for href="/ or src="/. Any path starting with a forward slash is an absolute path.
Fix
Remove the leading slash from every asset path. Change href="/styles.css" to href="styles.css". Do the same for JavaScript files, images, and fonts.
How Upfling tells you
Upfling does not warn about this during upload - the HTML is valid and the referenced files exist. The problem only shows up when the site is served, because each hosted site's files live under a path prefix on the storage server.
my-site.upfling.site
My Website
Welcome to my page
Click here
The HTML loaded, but absolute paths stopped every stylesheet and script.
Copy this into ChatGPT
Paste this prompt to get corrected HTML for your site.
I need you to fix my website's HTML so it works when uploaded to a static host. Follow these rules: 1. Use relative paths for all assets (styles.css, not /styles.css) 2. Do NOT use file:/// URLs or absolute paths 3. Put everything in a single index.html file with inline CSS and JS 4. Do NOT wrap the output in markdown code fences (no ```html) 5. Make sure every image, font, or script src points to a real file 6. Use only standard HTML, CSS, and JavaScript - no JSX, no imports, no build step Please regenerate my website following these rules.
Already fixed your files? Publish them now.
Free, no account needed
Fixes 2–6 are all path problems. If you ask ChatGPT to regenerate your site with relative paths and a single index.html, most of them go away at once.
FIX 3 OF 8

file:/// URLs left by ChatGPT

Symptom
Images, stylesheets, or scripts fail to load. The browser console may show failed requests to file:///Users/... or file:///C:/... addresses.
10-second check
Search your HTML file for file://. ChatGPT occasionally outputs local file system paths from its sandbox environment.
Fix
Replace every file:/// URL with a relative path pointing to the file you uploaded. For example, change src="file:///Users/sandbox/image.png" to src="image.png".
How Upfling tells you
Upfling does not flag file:/// URLs during upload. The HTML is technically valid - the browser simply cannot access another machine's local file system.
FIX 4 OF 8

Referencing files that weren't uploaded

Symptom
The page is completely blank (if a required JavaScript file is missing), shows broken image icons, or is missing styles - even though the HTML file loads fine.
10-second check
Open your browser's developer tools (F12) and check the Console or Network tab for 404 errors on .js, .css, or image files.
Fix
Make sure every file your HTML references is included in your upload. If ChatGPT produced separate HTML, CSS, and JS files, download and upload all of them together.
How Upfling tells you
The HTML page loads - only the missing assets return 404. Upfling does not currently warn you when your HTML references files that are not in your upload.
FIX 5 OF 8

Case-sensitive file paths

Symptom
An image or file fails to load even though you can see it listed in your uploaded files.
10-second check
Compare the filename in your HTML with the actual uploaded filename. src="logo.png" will not load a file named Logo.PNG - the capitalisation must match.
Fix
Make the path in your HTML match the uploaded filename exactly, including uppercase and lowercase letters. The simplest approach is to rename everything to lowercase.
How Upfling tells you
Upfling stores files on Cloudflare R2, where paths are case-sensitive. There is no error message - the mismatched file simply returns a 404.
FIX 6 OF 8

Mixed content - http:// on an https:// site

Symptom
Some resources fail to load silently. Your browser console shows warnings about blocked mixed content.
10-second check
Search your HTML for http:// (not https://). Browsers block insecure resources loaded on a secure page.
Fix
Change http:// URLs to https://, or switch to relative paths so the protocol is inherited automatically.
How Upfling tells you
Every Upfling site is served over HTTPS at *.upfling.site. There is no upload-time warning for http:// links in your HTML.
FIX 7 OF 8

Uploading source code instead of the built site

Symptom
Your upload is rejected, or the published site shows raw code - JSX tags, import statements, or a blank page with nothing visible.
10-second check
Look at the files you uploaded. If you see .jsx, .tsx, or .ts files, a package.json, or a node_modules folder, you have source code that needs a build step.
Fix
Run the project's build command (usually npm run build) and upload only the output folder - typically dist/ or build/. Or ask ChatGPT to give you a single self-contained HTML file instead.
How Upfling tells you

If you ZIP a project with node_modules and upload it, Upfling shows this message:

UPFLING · UPLOAD CHECK
We couldn't read that ZIP. It may be corrupted or password-protected. Try re-exporting it, or drop the files directly.
Copy this into ChatGPT
Paste this prompt to get corrected HTML for your site.
I need you to fix my website's HTML so it works when uploaded to a static host. Follow these rules: 1. Use relative paths for all assets (styles.css, not /styles.css) 2. Do NOT use file:/// URLs or absolute paths 3. Put everything in a single index.html file with inline CSS and JS 4. Do NOT wrap the output in markdown code fences (no ```html) 5. Make sure every image, font, or script src points to a real file 6. Use only standard HTML, CSS, and JavaScript - no JSX, no imports, no build step Please regenerate my website following these rules.
If your file is a single React component (.jsx or .tsx), the Artifact Converter can turn it into a self-contained HTML page without any build step.
FIX 8 OF 8

Markdown fences left in the HTML file

Symptom
The page shows ```html at the top and ``` at the bottom, or the entire page renders as unformatted plain text.
10-second check
Open the HTML file in a text editor. If the first line is ```html and the last line is ```, the markdown code fences are still in the file.
Fix
Delete the ``` lines from the top and bottom of the file. The content between them is your actual HTML.
How Upfling tells you
Upfling does not detect markdown fences - the file is valid text. The browser shows the backtick lines as visible text instead of recognising them as code formatting.
my-site.upfling.site
```html
<!DOCTYPE html>
<html>
<head>...
```
Markdown fences render as visible text instead of being interpreted.
Already fixed your files? Publish them now.
Free, no account needed

Still stuck? Email support with your URL.

Guy
Founder, Upfling
Full-stack engineer who built Upfling so anyone can put an AI-generated site online without learning Git, CI, or cloud hosting.
More about the team