Re: manage stored files via web

Поиск
Список
Период
Сортировка
От Grant Henderson
Тема Re: manage stored files via web
Дата
Msg-id 31EA81C61A3D014F8D6933864F32C604049D25@server1.fusion-advertising.co.uk
обсуждение исходный текст
Ответ на manage stored files via web  ("Victor Yegorov" <viy@pirmabanka.lv>)
Ответы Re: manage stored files via web  ("Victor Yegorov" <viy@pirmabanka.lv>)
Список pgsql-php
It would be better if you haven't gone to far already to save the files
into an level above the web directory and simply save the link to the
file into a varchar in the DB.
Then just call the link into an <a href="">.

G

-----Original Message-----
From: Victor Yegorov [mailto:viy@pirmabanka.lv]
Sent: 20 March 2003 10:47
To: Postgres PHP
Subject: [PHP] manage stored files via web


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

В списке pgsql-php по дате отправления:

Предыдущее
От: "Victor Yegorov"
Дата:
Сообщение: manage stored files via web
Следующее
От: "Victor Yegorov"
Дата:
Сообщение: Re: manage stored files via web