On Sat, Sep 5, 2009 at 7:58 AM, Thomas Harding<[email protected]> 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

Reply via email to