[Pear]HTTP_Download and content disposition

From: Date: Mon, 15 Nov 2004 10:17:45 +0000
Subject: [Pear]HTTP_Download and content disposition
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15503@lists.php.net to get a copy of this message
Hi I try to use the HTTP_Download package I would be glad to know if there is a way to use it (or another classe perhaps) to process a download with a different name that the filename stored on the server. I mean I save a file with a 'test-filename1.gz' and I want to open on the client side a window to save this file with the filename 'filename1.gz') I try to use contentdisposition option, but I think this is not a right way. I use staticSend feature of this package : $params_download = array( 'file' => './file_directory/'.$filename, 'gzip' => false, 'cache' => false, 'contentdisposition' => array(HTTP_DOWNLOAD_ATTACHMENT, $new_filename) $error_download = HTTP_Download::staticSend($params_download, false); Thanks Mos

« previous php.pear.general (#15503) next »