window.open
-
When I try to download a file, the page create a window-open and this is blocked by chrome and firefox at least.
To avoid the blocking, I changed in “folder.php” the next line.I hope will be usefull for someone.
if (!is_null($file)) {
$url = $dropbox->GetLink($rootFolder .$file,false,false);
//190615DS: echo ‘<script language=”javascript”>window.open(“‘.$url.'”);</script>’;
echo ‘<meta http-equiv=”refresh” content=”0;url=’.$url.'”/>’;}
David
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘window.open’ is closed to new replies.