couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: attachments "Content-Type" seems to be based on file extension.
Date Sat, 05 Sep 2009 17:40:14 GMT
On Sat, Sep 5, 2009 at 7:58 AM, Thomas Harding<tom@thomas-harding.name> wrote:
> Hello,
> As said in the title, attachments "Content-Type" seems to be based on file
> extension.

If you are using Futon then the Content Type is chosen by your
browser, so the file-extension rubric makes sense I guess.

>
> Simply renaming an UTF-8 text file from "test" to "test.text", and upload
> both with
> Futon, causes the first to be interpreted as "application/octet-stream" and
> the
> second to "text/plain".
>
>
> This is a bit annoying while indexing as fulltext via couchdb-lucene, as the
> last
> uses the provided content-type to fill apache tika requests, which handles a
> few
> files types.
>
> Is there a way to ensure (force) the "Content-type" given by couchdb?
>
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message