[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: kparts and mimetypes
From: David Faure <david () mandrakesoft ! com>
Date: 2001-11-04 22:51:14
[Download RAW message or body]
On Jeudi 1 Novembre 2001 22:16, George Staikos wrote:
-- > While working on kcertpart, I have noticed a problem with mimetypes and
> kparts. Now perhaps there is a way around it, but I have yet to find it. It
> goes like this:
>
> On a webpage in konqueror, I click on a file that is
> application/x-x509-ca-cert. Konqueror loads my part correctly, but it seems
> to save the file to a different filename so that when I try to get the
> mimetype of the filename, it returns application/octet-stream. This works
> fine if I use konqueror in file browsing mode though. There is no mime magic
> for this filetype so I have to depend on the filename.
Over HTTP we rely on the Content-Type header... If not set, then
mime magic is used. If you can fix the HTTP configuration, that
would be the right fix......
> One other thing: Is it possible for us to try to guess at text/plain files
> we get via web pages (or other)?
Yes, kio_http is full of such hacks already....
But how would you guess that ?
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE 3.0: Konquering the Desktops
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic