couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Blakey <antony.bla...@gmail.com>
Subject Re: Issue with null MIME type for attachments
Date Sun, 25 Jan 2009 20:19:53 GMT

On 26/01/2009, at 4:40 AM, Chris Anderson wrote:

> On Sun, Jan 25, 2009 at 8:41 AM, Brian Candler <B.Candler@pobox.com>  
> wrote:
>
>> Is it expected behaviour that a client app can upload an attachment  
>> in such
>> a way that it cannot be downloaded again? I think the server should  
>> either
>> fail the upload, or default the MIME type to application/octet- 
>> stream.
>
> This is definitely a bug in Ruby couchapp, but you raise an
> interesting question.
>
> Anyone have a strong opinion on which way to go (default vs error)?

Treat a supplied null as an error.

If mimetype isn't supplied, use a default based on the attachment name.

Antony Blakey
-------------
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787

It is no measure of health to be well adjusted to a profoundly sick  
society.
   -- Jiddu Krishnamurti



Mime
View raw message