When I upload my index.html file to the htdocs folder using Filezilla, it appears in the directory and then instantly disappears.
I found another forum post mentioning that this could happen if the filesize exceeds 1mb or if the file contains malware. The file size however is 995kb and I have scanned the file using Microsoft Defender and it found no issues with it.
The index.html file displays in my browser if I double click it on my pc, so it’s definitely correct. It was created using Google Sits and then downloaded as a .html file.
Does anyone have any insight that could help me with this?
I’m pretty sure that’s hitting the 1 MB file size limit. If the limit is being enforced as “1 MB”, not “1 MiB”, then the limit is actually 1 million bytes. If your file is “995 kiB”, it means your file is 995x1024 bytes, which means the size is actually just under 1.019 million bytes, which is over the limit.
Please try reducing the file size to 975 kiB or less and then try uploading it again. That should keep you under the 1 million byte limit.
Yep! Can confirm that was the issue. I just re-created the website using a different website builder instead of Google Sites, as it’s only a landing page I have anyway and the .html file size is much smaller and uploaded fine.
All working, and resolved! Appreciate the help, thanks!