如果我下载filename.tra.xz,它就会被破坏。
$newfile=$row['orginal_filename']; //download file name
$download_file='Attachment/'.$row['path'];
header('Content-type: application/x-gzip');
//header("Content-Type: application/forcedownload");
header("Content-Length: " . filesize($download_file));
header('Content-Disposition: attachment; filename="' . $newfile . '"');
readfile($download_file);
exit();