Page 1 of 1

download filename issue

Posted: Tue Jan 23, 2007 10:41 am
by yeller
Is there any way to change the name of the file as presented in the download window that appears when downloading a file? The filename by default is not optimal.

thanks

Posted: Tue Jan 23, 2007 10:50 am
by volka
http://de3.php.net/manual/en/function.header.php wrote:// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');
see also http://www.w3.org/Protocols/rfc2616/rfc ... #sec19.5.1