# Html, code limit?

**URL:** <https://forum.infinityfree.com/t/html-code-limit/122319>\
**Category:** Hosting Support\
**Created:** [December 4, 2026, 12:53pm UTC](https://forum.infinityfree.com/t/html-code-limit/122319 "2026-12-04T12:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vhgvargas](https://forum.infinityfree.com/letter_avatar/vhgvargas/32/6_449c533f586939b6e5f246632a46421f.png) [@vhgvargas](https://forum.infinityfree.com/u/vhgvargas)\
**Post date:** [December 4, 2026, 12:53pm UTC](https://forum.infinityfree.com/t/html-code-limit/122319/1 "2026-12-04T12:53:52Z")

</div>

### Website URL

[https://forum.infinityfree.com](https://forum.infinityfree.com)

### Error Message

Hi, I’m building a website using HTML. I try to upload or create a file and add the code, but whenever I refresh the file manager, the file disappears. The file contains 1,785 lines; I’m wondering if there might be some kind of limit or restriction in place.

### Other Information

Just this

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [December 4, 2026, 12:53pm UTC](https://forum.infinityfree.com/t/html-code-limit/122319/2 "2026-12-04T12:53:52Z")

</div>

Welcome to the InfinityFree community forum! Good to have you here.

- Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
- Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
- AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
- Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [December 4, 2026, 12:54pm UTC](https://forum.infinityfree.com/t/html-code-limit/122319/3 "2026-12-04T12:54:17Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

Yes, there is a limit, but 1,785 lines of HTML is probably under it. HTML, PHP and JS files can be up to 1 MB, and files over the limit are deleted automatically. Files saved outside an `htdocs` folder are also deleted automatically. Both are listed in this article on why files vanish after upload:

> [@Why are my files deleted after uploading them?](https://forum.infinityfree.com/t/why-are-my-files-deleted-after-uploading-them/49310):
>
> Sometimes, a file upload seems to complete normally, but the file is deleted right after. This is usually caused by one of the issues below. The file is not in an htdocs folder All website files must be uploaded to the main htdocs folder, or to the htdocs folder of a specific domain (like example.com/htdocs). Files created or uploaded anywhere else on your account are deleted automatically. The file type is not allowed Certain file types, like .exe and .apk files, are blocked for security and…

Two questions would narrow it down. Which folder is the file in? It needs to be in `htdocs` or in the `htdocs` folder of a specific domain, such as `example.com/htdocs`. And roughly how big is the file in KB or MB?

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [December 4, 2026, 2:22pm UTC](https://forum.infinityfree.com/t/html-code-limit/122319/4 "2026-12-04T14:22:41Z")

</div>

As Lemni pointed out there are file size limits. so its possible you’re hitting that limit. Here’s the specific limit you might be hitting:

> [@Why are my files deleted after uploading them?](https://forum.infinityfree.com/t/why-are-my-files-deleted-after-uploading-them/49310/1):
>
> Files that exceed the file size limit are deleted automatically. The limit depends on the file type:
> 
> - HTML, PHP and JS files: 1 MB
> - .htaccess files: 10 kB
> - All other files: 10 MB
