No worries, it happens
If you face an issue and haven’t checked it out yet, you may wish to take a look at the Knowledge Base, many issues you might face are documented there:
many thanks, but I dont understnad the reason behind the htdocs restriction. if I can rename the folder after that. effectively its the same thing just an extra headache of remaining folder
The restriction (the automatic deletion) is there to prevent people from uploading files to the wrong folder and then wondering why their files aren’t accessible.
The htdocs naming for the folder that houses the website’s content isn’t unusual; most hosting providers have something similar, either htdocs or other names such as public_html or www:
Renaming the folder isn’t possible, I’m afraid, as it would break your site’s configuration.
Most server hosting providers have to store system files besides letting you upload stuff to them, giving you a folder htdocs or anything similar facilitates setting up sync folders in FTP and also making it clear for both you and the admin that this folder contains your stuff. Certain security features to protect your site also need a specific folder to be monitored in order to prevent chaos, for example not allowing code execution in the htdocs folder prevents the server from being remotely hijacked by whoever doesn’t agree with what you say on the web, or just want to post nasty using your website name, etc. You certainly want this folder to be named this way for those to work.
Some hostings would allow you to place personal files that are private and not public, those will live in a folder called private right next to htdocs. However since InfinityFree is a free hosting, you won’t see this option unless you upgrade. Sounds fair to me.