X-Original-To: pgsql-php@postgresql.org Received: from shield.pirmabanka.lv (unknown [195.114.57.4]) by postgresql.org (Postfix) with ESMTP id 1E7B9475B99 for ; Thu, 20 Mar 2003 05:45:51 -0500 (EST) Received: from wall2.pirmabanka.lv (wall2-pub.pirmabanka.lv [195.114.57.14]) by shield.pirmabanka.lv (8.12.8/8.9.3) with SMTP id h2KAjqtw019292 for ; Thu, 20 Mar 2003 12:45:52 +0200 Received: from share.pirmabanka.lv ([10.0.0.10]) by wall2.pirmabanka.lv; Thu, 20 Mar 2003 12:45:52 +0200 (EET) Received: from pc311x1.pirmabanka.lv (localhost.localdomain [127.0.0.1]) by pirmabanka.lv (8.11.6/8.11.6) with SMTP id h2KAjpL04878 for ; Thu, 20 Mar 2003 12:45:51 +0200 Received: (qmail 16526 invoked by uid 100); 20 Mar 2003 10:46:45 -0000 Date: Thu, 20 Mar 2003 12:46:45 +0200 From: "Victor Yegorov" To: "Postgres PHP" Subject: manage stored files via web Message-ID: <20030320104645.GA16456@pirmabanka.lv> Mail-Followup-To: "Postgres PHP" Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline User-Agent: Mutt/1.4i X-Archive-Number: 200303/22 X-Sequence-Number: 1934 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. Sorry for off-topic, but... I have the following problem. I'm developing system with ability to store files inside it. Files are being stored in postgres as large objects. The problem is, that actual file names are stored along with LO oids. When user wants to download some file, it clicks on link: "...?oid=3D&actio= n=3Dget" and browser suggests strange name for file being downloaded (currently it suggests domain name or link text as file name). What I want is that file name suggested by browser would be the one, stored in DB. I currently enclose it in Content-type: HTTP header, but that seems to be not working. Thanks in advance. --=20 Victor Yegorov --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+eZwV2RKGLEykUDYRAiaVAKCVfgXRdojKuhg2c1XBPjROcV924gCdFWip o6RQqvJI+kR7wLOYnIUK2Q8= =PLas -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--