You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Noah Slater (JIRA)" <ji...@apache.org> on 2008/03/09 00:43:46 UTC

[jira] Created: (COUCHDB-1) MIME types for attachments

MIME types for attachments
--------------------------

                 Key: COUCHDB-1
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1
             Project: CouchDB
          Issue Type: Improvement
            Reporter: Noah Slater
            Priority: Minor


There is AFAICT currently no standard way to associate a MIME type with
attachments. This is needed for CouchDB to be able to serve the attachment
with the correct Content-Type header.

There's already a type field in the attachment JSON structure, which I'd
suggest should be renamed to encoding, as it's intended to determine how
the content has been encoded in the JSON data (for example "base64"). With
that out of the way, the type field should contain the MIME type. When an
attachment is added, the client should be able to specify the MIME type
using this field, but CouchDB could use a sane default
("application/octet-stream") if the field is missing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (COUCHDB-1) MIME types for attachments

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz resolved COUCHDB-1.
------------------------------------

    Resolution: Fixed

Attachments now have a "content-type" field that's used as the Content-Type when retrieved. Not sure when it was added, but it's there.

> MIME types for attachments
> --------------------------
>
>                 Key: COUCHDB-1
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>            Reporter: Noah Slater
>            Priority: Minor
>
> There is AFAICT currently no standard way to associate a MIME type with
> attachments. This is needed for CouchDB to be able to serve the attachment
> with the correct Content-Type header.
> There's already a type field in the attachment JSON structure, which I'd
> suggest should be renamed to encoding, as it's intended to determine how
> the content has been encoded in the JSON data (for example "base64"). With
> that out of the way, the type field should contain the MIME type. When an
> attachment is added, the client should be able to specify the MIME type
> using this field, but CouchDB could use a sane default
> ("application/octet-stream") if the field is missing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-1) MIME types for attachments

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz updated COUCHDB-1:
-----------------------------------

    Component/s: Database Core

> MIME types for attachments
> --------------------------
>
>                 Key: COUCHDB-1
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>            Reporter: Noah Slater
>            Priority: Minor
>
> There is AFAICT currently no standard way to associate a MIME type with
> attachments. This is needed for CouchDB to be able to serve the attachment
> with the correct Content-Type header.
> There's already a type field in the attachment JSON structure, which I'd
> suggest should be renamed to encoding, as it's intended to determine how
> the content has been encoded in the JSON data (for example "base64"). With
> that out of the way, the type field should contain the MIME type. When an
> attachment is added, the client should be able to specify the MIME type
> using this field, but CouchDB could use a sane default
> ("application/octet-stream") if the field is missing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.