incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Harding <...@thomas-harding.name>
Subject attachments "Content-Type" seems to be based on file extension.
Date Sat, 05 Sep 2009 14:58:53 GMT
Hello,
As said in the title, attachments "Content-Type" seems to be based on 
file extension.

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?


Mime
View raw message