Hi Rajath,

On Sun, Jun 16, 2013 at 01:07:00PM +0530, Rajath Shashidhara wrote:
> Hello,
> 
> When requested for MIMEType/ContentType for a folder, what should be the
> result?

read the API doc carefully:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
Properties - Mandatory properties - ContentType

"contains a unique type string for the content ( i.e.
"application/vnd.sun.star.hierarchy-link" ).

This property is always read-only.

The ContentType should not be confused with the MIME media type ( MIME
types ) of the content. Media types may be provided through the optional
property "MediaType".

The value of this property should match the information on creatable
contents given by UCB contents that implement the property
"CreatableContentsInfo"."

a) do not confuse ContentType with MediaType (the MIME type)

b) the value of ContentType is up to the implementation, search for
application/ in main/ucb/source/ucp/ to get an idea
http://opengrok.adfinis-sygroup.org/source/search?q=application%2F&path=%2Faoo-trunk%2Fmain%2Fucb%2Fsource%2Fucp%2F&project=aoo-trunk

Something like

application/cmis-content-folder
application/cmis-content-document


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpOWO6rfL_ld.pgp
Description: PGP signature

Reply via email to