Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 4988 invoked from network); 5 Sep 2009 15:02:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Sep 2009 15:02:34 -0000 Received: (qmail 63535 invoked by uid 500); 5 Sep 2009 15:02:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 63452 invoked by uid 500); 5 Sep 2009 15:02:33 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 63442 invoked by uid 99); 5 Sep 2009 15:02:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 15:02:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tom@thomas-harding.name designates 88.170.168.121 as permitted sender) Received: from [88.170.168.121] (HELO smtp.thomas-harding.name) (88.170.168.121) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Sep 2009 15:02:25 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.thomas-harding.name (Postfix) with ESMTP id 28B212161A for ; Sat, 5 Sep 2009 17:02:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at smtp.thomas-harding.name Received: from smtp.thomas-harding.name ([127.0.0.1]) by localhost (thomas-harding.name [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HMngTALfACKu for ; Sat, 5 Sep 2009 17:02:03 +0200 (CEST) Received: from [IPv6:2a01:e35:8aaa:8790:222:15ff:fe64:e855] (blackberry.hdglocal [IPv6:2a01:e35:8aaa:8790:222:15ff:fe64:e855]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Thomas Harding, smtp", Issuer "Thomas Harding" (verified OK)) (Authenticated sender: tom@smtp) by smtp.thomas-harding.name (Postfix) with ESMTPSA id 6526E21609 for ; Sat, 5 Sep 2009 17:02:03 +0200 (CEST) Message-ID: <4AA27D6A.1040102@thomas-harding.name> Date: Sat, 05 Sep 2009 17:02:02 +0200 From: Thomas Harding User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: attachments "Content-Type" seems to be based on file extension. References: <4AA27CAD.5080001@thomas-harding.name> In-Reply-To: <4AA27CAD.5080001@thomas-harding.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As Paul Davis said, Content-Type is filled by the client which upoads the file, not the server. apologies... Thomas Harding wrote: > 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? >