Why are my HTML files deleted after uploading them

Website URL

https://www.twentytwobourbon.com

Error Message

No error messages

Other Information

I’ve been uploading a HTML file to my htdocs folder for a long time. It’s a single file, I just upload an updated version when there are changes. I tried it today and after the file uploaded, it was automatically deleted.

Hi and welcome to the forum! Take note of the file size limits, which are these:

And also consider splitting your HTML file up whenever it’s possible to do so, saving both parts as a PHP file, and including the second part of it with the PHP include() or require() functions.

1 Like

Sorry, forgot to include that part. The file size is 169 KB.

Then it might also be one of the other reasons in the article I got the file limits on as well, though I don’t know as I don’t have enough information as to the file you’re uploading but the file size…

2 Likes

Thanks. I’ve gone through that article and nothing seems to fit. The funny thing is, it’s says pdf files are not allowed, but I can upload those just fine. I’ve been uploading this HTML file for over a year without any issues. I upload an updated version probably once a month. I haven’t had any problems until today. I even went back to a backup of my website and pulled the file from there and uploaded it. Same thing, it was deleted as soon as the upload completed.

I’ve found a workaround. I change the file extension, upload the file, then change the file extension back to html.

1 Like

See Files not transferring into htdocs folder

The file deletion was due to a bug in the server which should now be fixed

6 Likes

Thank you. I thought I was losing my mind. I tried it, and it works.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.