cancel
Showing results for 
Search instead for 
Did you mean: 

How do I tell where a blob is stored from the document metadata when using the BlobDispatch configuration?

Damon_Brown
Champ in-the-making
Champ in-the-making

Assuming I have three blob repositories configured (invoices, articles, default) for my instance. Is there a way to tell from the document metadata exactly where the blob is stored?

Example configuration:

<extension target="org.nuxeo.ecm.core.blob.DocumentBlobManager" point="configuration">
  <blobdispatcher>
    <class>org.nuxeo.ecm.core.blob.DefaultBlobDispatcher</class>
    <property name="dc:nature=invoice">invoices</property>
    <property name="dc:nature=article">articles</property>
    <property name="default">default</property>
</extension>

Example file:content:

"file:content": { 
 "name": "sample.png",
 "mime-type": "image/png",
 "encoding": null,
 "digestAlgorithm": "MD5",
 "digest": "0caa26f95908fab00bdbdbdcde751cbf",
 "length": "618915",
 "data": "http://localhost:8117/nuxeo/nxfile/default/f51a0ed5-c87c-408e-a945-43dffd0bd457/file:content/sample.png" 
}

Is the 'default' part of /nuxeo/nxfile/default/ the name of the repository?

1 REPLY 1

Josh_Fletcher
Champ in-the-making
Champ in-the-making

The portion of the path default should be the repository id. OTOH you shouldn't need to parse it from a string...

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.