On 21/06/05, Jordi Domingo <jordidr(a)gmail.com>
wrote:
Mmm, it's true, I work with PO files (*.po),
but after all internally
are text/plain. I suppose I'll have to put a tooltip or something
"press right button", as I can't suppose any specific browser for my
aplication (could be konqueror, mozilla, firefox, etc...). I'll try to
conf the server, as you say.
Well, it should be possible to set up your server to send a specific
filetype for files with that extension; I don't know that they have an
"official" filetype, but sending "text/x-po" or
"text/x-localisations"
would seem reasonable. According to
http://httpd.apache.org/docs/mod/mod_mime.html.en#addtype doing this
in Apache should be just a case of adding the following line in an
appropriate configuration file/section:
AddType text/x-localisations .po
Most browsers will then say something like "this file is of type
text/x-localisations, and I don't have an associated action for those,
would you like to save it?"
--
Rowan Collins BSc
[IMSoP]
Thanks, it works! The file it's httpd.conf, if anyone needs it.
By the way: there's some function to know if anyone has downloaded a
given file (not necessarily an uploaded file)? I don't see it in the
list (recent months), or in Image.php.
I suppose it will be enough with the tooltip I put in logout
(something like "Logout: remember download your file first")...
Jordi