On 26/01/2009, at 4:40 AM, Chris Anderson wrote:
On Sun, Jan 25, 2009 at 8:41 AM, Brian Candler <[email protected]>
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