Files suddenly keep getting deleted

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.

Your files are small CSVs in a subfolder of htdocs, so the usual size and location causes don’t obviously apply. Can you tell me the full path the files end up in, for example htdocs/data/file.csv, and how they get there (FTP, the online file manager, or a script on your site)? With that I can tell whether the folder is the problem or something else is.

I found an article on why files get deleted after upload. It lists the causes the servers delete files for automatically:

  • The file isn’t inside an htdocs folder.
  • The file type is blocked.
  • The file is flagged by the automatic malware scan.
  • The file is over the size limit.

Your file type and size look fine, so it would be worth checking the first and third points. If the files sit outside htdocs, or if they’re deleted right after a script writes them, the path and upload method should show which it is.