PHPMailer.php gets automatically deleted on upload

Website URL

not a web or url problem

Error Message

File gets deleted on upload

Other Information

Hello! I’ve been using PHPmailer with sucess the past days on infinityfree. Today I had to upload a backup to the server and found that PHPMailer.php gets deleted on upload. It’s the same file I used to use the past days, and on the same path, no changes there. I have also tried to download again PHPMailer source code ( Release PHPMailer 6.9.2 · PHPMailer/PHPMailer (github.com)) and upload latest version but same happens, most of the files in PHPMailert/src are uploaded but PHPMailer.php is autodeleted.

Path is /htdocs/documentostecnicos/PHPMailer/src and filesize is 188421 bytes (180KB)

I’ve read this Why are my files deleted after uploading them - File Management and FTP - Docs - InfinityFree Forum but I dont see anything there that might prevent me from uploading it

any hint?

Hi and welcome to the forum

Probably the protection on the server is tripping


You can download the infinityfree version which uses phpmailer 6.8

and try to upload (the whole package) and test.

You will find the necessary in vendor/phpmailer/phpmailer/src

3 Likes

thanks!

but unfortunately, same problem, as soon as I upload it, gets deleted (only the PHPMailer.php file, others are fine!)

this is very strange…

I checked PHPMailer’s source code just to see that that file is bigger than the new file size limit they’re testing for PHP and HTML files, which I talked about here:

So you might have to rename it to a different extension then rename it back for it to stay on your account.

4 Likes

hey! that did the trick, thanks!

how should I wanrt the team so they change the guiide (Why are my files deleted after uploading them) so they adapt this:

The size limits are:

  • HTML, PHP and JS files are limited to 1 MB.

to the new limits?

First we have to wait to see if that’s an error or that’s official; only after that does the Admin update the article. If that was an error he wouldn’t update it but would alert iFastNet first.

1 Like

oh! thanks I tought it was confirmed. thanks!

There was a bug in the file size detection causing it to delete files that were well below the 1 MB limit. That was a bug, and it should be fixed now.

5 Likes

I can confirm It has been solved, Thanks!

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