couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McDaniel <couc...@autosys.us>
Subject Re: Issue with null MIME type for attachments
Date Sun, 25 Jan 2009 19:11:33 GMT
On Sun, Jan 25, 2009 at 10:10:10AM -0800, 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)?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 1) If a proper upload is defined that app must provide a MIME type,
    and none is provided by the app, return an error.  

 2) Define an upload as "provide your MIME type, or you'll get X".
    And it wouldn't hurt to send back info to the app that
    "MIME type was set to X".


 I suggest '1)'

~Michael


> 
> Chris
> 
> -- 
> Chris Anderson
> http://jchris.mfdz.com

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us


Mime
View raw message