# Cannot upload website files to /htdocs using File Manager

**URL:** <https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215>\
**Category:** Hosting Support\
**Created:** [November 30, 2026, 3:04am UTC](https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215 "2026-11-30T03:04:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AquaControlBryan](https://forum.infinityfree.com/letter_avatar/aquacontrolbryan/32/6_449c533f586939b6e5f246632a46421f.png) [@AquaControlBryan](https://forum.infinityfree.com/u/AquaControlBryan)\
**Post date:** [November 30, 2026, 3:04am UTC](https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215/1 "2026-11-30T03:04:46Z")

</div>

### Website URL

[http://aquacontrol.free.je](http://aquacontrol.free.je)

### Error Message

Upload failed: Unexpected token ‘A’, “Authentica…” is not valid JSON  
Upload failed: JSON.parse: unexpected character at line 1 column 1 of the JSON data  
Upload failed: Uploads are only allowed to htdocs folders for security reasons  
Zip & Extract: Invalid response from server

### Other Information

I opened File Manager from my InfinityFree control panel and navigated to /htdocs. The index.html file uploaded, but the other HTML and CSS files did not. Uploading a ZIP also failed. I refreshed the folder and confirmed the files are not there. Please tell me the recommended way to upload the rest of my website or help me troubleshoot. [FileZilla](https://filezilla-project.org/download.php?type=client) was blocked by Windows security.

---

<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:** [November 30, 2026, 3:04am UTC](https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215/2 "2026-11-30T03:04:46Z")

</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:** [November 30, 2026, 3:05am UTC](https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215/3 "2026-11-30T03:05:05Z")

</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._

Which folder are you uploading into? Please give the full path shown at the top of File Manager. Is it `aquacontrol.free.je/htdocs`, or an `htdocs` folder somewhere else? The two “Uploads are only allowed to htdocs folders” and “Zip & Extract” errors make me want to check that first.

The reason is that website files must go in the `htdocs` folder of the specific domain, such as `example.com/htdocs`. Files anywhere else on the account are deleted automatically. This is covered here:

> [@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…

I couldn’t find anything that explains the `Unexpected token 'A', "Authentica..."` error, so I don’t want to guess at it. Can you tell me whether it shows up for every file or only for some? And does the full text of that message say more than “Authentica…”?

You also mentioned [FileZilla](https://filezilla-project.org/download.php?type=client) was blocked by Windows security. What exactly did Windows show? Was it a firewall prompt, or a message about the installer? That would tell us whether FTP is an option at all.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 30, 2026, 7:35pm UTC](https://forum.infinityfree.com/t/cannot-upload-website-files-to-htdocs-using-file-manager/122215/4 "2026-11-30T19:35:21Z")

</div>

I did some testing and I was able to upload files, including zip files, without any issues.

Is there anything else you can say about the files you tried to upload? Do they have special names or contain special characters? How large are the files?

I would be good if you could find out what the response actually is, but the file manager is somewhat resistant against debugging.
