Uploaded files disappear from /htdocs within minutes

Website URL

https://nutrivelopment.com

Error Message

No error message shown - files uploaded to /htdocs via the web file manager appear in the listing at first (verified, correct size ~1.2 MB) but disappear within minutes. Nothing is deleted manually.

Other Information

Hosting account: if0_43148981. This happened 8+ times today with the same file, and also with a small test file created via “Create new file”. My parked domain nutrivelopment.com (document root /htdocs) therefore can’t serve the uploaded index.html. Could you check for a storage/sync issue on this account? Thanks!

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.

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.

The 1.2 MB file is probably over the size limit. This article lists why files get deleted right after an upload:

HTML, PHP and JS files are limited to 1 MB, and a file over the limit is deleted automatically. The limit applies however the file gets onto the account, so the web file manager doesn’t get around it. A 1.2 MB index.html would explain that file vanishing. The article also covers moving CSS and JavaScript into separate files or splitting up the page, which usually gets an HTML file under 1 MB.

The size limit doesn’t explain the small test file, though. The same article lists three other causes:

  • The file isn’t inside a htdocs folder.
  • The file type is blocked.
  • The file was flagged as malware.

What was the test file called, and what was in it? And what’s the full path it sat in, for example /htdocs/test.txt or a subfolder? That should show whether it’s the same problem or a different one.

If a plain small file, like a .txt or .html with a line of text, directly in htdocs still disappears, none of those causes fit. A person would then need to look at the account, because I can’t tell from here.

As the bot said, it’s probably a file size issue. The size limits are

HTML, PHP and JS files are limited to 1 MB.
.htaccess files are limited to 10 kB.
All other files are limited to 10 MB.

Update: solved! The 1 MB limit was indeed the cause. I split the 1.2 MB index.html into a 47 KB HTML file with the images as separate files, and everything now stays in place. Thanks for the quick help!