I noticed a problem with the new version 54.0 of firefox.
On some of my websites, to download the file, do the following instructions:
Code: Select all
Javascript:
Function attachment (id)
{
filename = "./php/dwn_all.php? id =" + id;
size = "width = 0, height = 0, scrollbars = yes";
Var win = window.open (filename, "", size);
}
PHP:
....
...
$String = "../configured/allegato.PDF";
Header ('Content-Description: File Transfer');
Header ("Content-Type: application / octet-stream");
Header ("Content-Disposition: attachment; filename = attachment.PDF");
Header ('Expires: 0');
Header ("Cache-Control: must-revalidate, post-check = 0, pre-check = 0");
Header ('Pragma: public');
Header ("Content-Type: application / force-download");
Header ("Content-Length:". Filesize($string));
readfile ($string);
...
...
On Chrome and IE no problem, the files are opened / downloaded without any problems.
I have also verified that the problem is not just about my PC, but also about all of my clients who have updated to the new version.
I tried in the forum but I did not find anyone with my usual problem .... what's wrong?
Thank you