frozenpeas
Technical User
Hi,
I have the following code:
which works fine.
When the user clicks "Open" rather than "Save" is there any way to open the file in a new window? It currently opens in the same window which doesn't work for my purposes.
Thanks in advance.
frozenpeas
I have the following code:
Code:
<?php
header('Content-type: image/jpeg');
header('Content-Disposition: attachment; filename='.$filename);
// The source file
readfile($filename);
?>
which works fine.
When the user clicks "Open" rather than "Save" is there any way to open the file in a new window? It currently opens in the same window which doesn't work for my purposes.
Thanks in advance.
frozenpeas