Free and Unlimited Web Hosting

Why are my files deleted after uploading them?

Why are my files deleted after uploading them?

Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues:

The file is not in a htdocs folder

All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs). If a file is created or uploaded anywhere else, it will be deleted automatically.

The file is bigger than 10 MB

There is a file size limit of 10 MB on our servers. If you try to upload a file bigger than 10 MB to your account, it will be deleted.

If this is the problem you experience, please see the article How to upload big files for workarounds.

The file type is not allowed

Certain file types, like .exe files, are blocked on InfinityFree for security and fair usage limitations. Regular website files are allowed, but other files may be blocked. So if you would like to offer something for download or embed a video in your website, please use a specialized file sharing service or video streaming service for that instead.

The file contains malware

Uploaded files are automatically scanned for malware. If malware is detected in a file, it's automatically deleted to prevent damage to your website and your visitors.

The file is a .htaccess file larger than 10 kB

In addition to the general file size limit, there is a limit of 10 kB for .htaccess files. A .htaccess file larger than 10 kB will automatically be deleted.

Still have questions? Check our forum!