# Cant upload index.php file to ftp server

**URL:** <https://forum.infinityfree.com/t/cant-upload-index-php-file-to-ftp-server/66497>\
**Category:** Hosting Support\
**Created:** [September 24, 2022, 7:28am UTC](https://forum.infinityfree.com/t/cant-upload-index-php-file-to-ftp-server/66497 "2022-09-24T07:28:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [September 24, 2022, 8:28am UTC](https://forum.infinityfree.com/t/cant-upload-index-php-file-to-ftp-server/66497/3 "2022-09-24T08:28:22Z")

</div>

Did you check this article already to see if any of these restrictions apply to you?

> [@Why are my files deleted after uploading them](https://forum.infinityfree.com/t/why-are-my-files-deleted-after-uploading-them/49310):
>
> 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). You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically. The file type…

---

_[View the full topic](https://forum.infinityfree.com/t/cant-upload-index-php-file-to-ftp-server/66497)._
