incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: Two kinds of Attachments in doc
Date Thu, 29 Apr 2010 18:07:05 GMT
content_type starts with image/ it's the cover, if it starts with
audio/ it's the track?

On Thu, Apr 29, 2010 at 10:37, faust 1111 <faust451@gmail.com> wrote:
> Hi guy's
>
> I need modeling this:
>
> Audio
>  has_attachment
>    cover_img
>    trac_mp3
>
> {
>  _attachments: {
>     'super_cover.png': {content_type: ''},
>     'my_track.mp3': {}
>  }
> }
>
> how later i can identify, which file is cover and which is track?
> Now i have only this idea:
>  store file name in additional field cover_attach_name, trac_attach_name.
>
> But may be another way?
>

Mime
View raw message