pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Yegorov <viy@pirmabanka.lv>
To: Postgres PHP <pgsql-php@postgresql.org>
Subject: manage stored files via web
Date: Thu, 20 Mar 2003 12:46:45 +0200
Message-ID: <20030320104645.GA16456@pirmabanka.lv> (raw)

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=<oid>&action=get"
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.

-- 

Victor Yegorov

view thread (7+ messages)  latest in thread

Message-ID: <20030320104645.GA16456@pirmabanka.lv>
Permalink:  ../20030320104645.GA16456@pirmabanka.lv/
Also on:    postgresql.org/message-id/20030320104645.GA16456@pirmabanka.lv

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: viy@pirmabanka.lv
  Subject: Re: manage stored files via web
  In-Reply-To: <20030320104645.GA16456@pirmabanka.lv>
  References: <20030320104645.GA16456@pirmabanka.lv>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox