From a day to another this PHP code that run to download a correct .rar file
// pg_download_patch.php - VIEW part
<form action="download_patch_gestao.php" method="post">
<input class="btn btn-primary btn-lg pull-left" id="btn_add" type="submit" name="download_8397" value="Download Atualizacao Gestao Versao 3.500"/>
$post = filter_input(INPUT_POST, "download_8397");
$filename = "../hgs_out/Gestao_PATCH_v3500.rar";
header("Content-Length: " . filesize($filename));
header("Content-Disposition: attachment; filename=" . basename($filename));
Still runs but the .rar downloaded has some kind of error (defective) and couldn't be opened!
Could you suggest a workaround?
(The internet provider initially infomed no configurations was done, any suggestion on what especifically to ask them additionally to check his information?)
Thanks in advance!