When uploading the database to an online website, the file arrives damaged, while when sending it as an attachment, the file arrives intact
In this code, I upload the file to my website via FTP
The file is uploaded properly, but when the file is downloaded, it is corrupted
In the same context, it is possible to send it as an attachment, and when sending the database as an attachment, it arrives in the e-mail completely intact.
With an important note
The size of the damaged file is less than the size of the healthy file by several kilobytes
I tried to compress the file and do the same process and got the same result
The compressed file uploaded to the site is damaged, while the one sent as an attachment arrives intact