PDA

View Full Version : open accessed file in new window


thahne
21-06-05, 09:49 PM
Hi Everybody,

since Iīm a newbie it might be very easy to answer one but I coudnīt find answer in the forum so far: how to set to open selected file-attachemnt in new window? Sometimes we do have large files to download - than it would be possible to go ahead in the origin window while dl.

thank for info!
Thomas

opto
21-06-05, 11:38 PM
Currently, in the fileviewer, the file is downloaded inline.

See:
header("MIME-Version: 1.0");
header( "Content-length: {$file['file_size']}" );
header( "Content-type: {$file['file_type']}" );
header( "Content-transfer-encoding: 8bit");
header( "Content-disposition: inline; filename=\"{$file['file_name']}



(last line)

If you set inline to attachment, you will get a classic 'do you want to download' request with the additional 'do you want to save or to open' question (on Windows).


Regards,


Klaus

thahne
22-06-05, 12:55 AM
Dear Klaus,

exactly this it what i have been looking for! thanks!
Thomas