pa help po mga sir about kung pano coding ng pwd a download any file type and then any device type
ito po kasi ginawa po and then corrupted sya pag bigfile na ang denadownload and then sa ibang device namn halimawa mp3 ok namn sa desktop pero pag phone na ang nag download corrupted na sya
ito po ung code ko
if (!$DEVICE) {
header('Content-Description: File Transfer');
header('Content-Type: application/vnd.android.package-archive');
header("Content-length: " . filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
return true;
}else{
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="' . basename($file) .'"');
readfile($file);
}
ito po kasi ginawa po and then corrupted sya pag bigfile na ang denadownload and then sa ibang device namn halimawa mp3 ok namn sa desktop pero pag phone na ang nag download corrupted na sya
ito po ung code ko
if (!$DEVICE) {
header('Content-Description: File Transfer');
header('Content-Type: application/vnd.android.package-archive');
header("Content-length: " . filesize($file));
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
return true;
}else{
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="' . basename($file) .'"');
readfile($file);
}