Class FilesystemBlobProvider

  • All Implemented Interfaces:
    BlobProvider

    public class FilesystemBlobProvider
    extends AbstractBlobProvider
    Blob provider that can reference files on the filesystem.

    This blob provider MUST be configured with a "root" property that specifies the minimum root path for all files:

     
     <blobprovider name="myfsblobprovider">
       <class>org.nuxeo.ecm.core.blob.FilesystemBlobProvider</class>
       <property name="root">/base/directory/for/files</property>
     </blobprovider>
     
     

    A root of / may be used to allow any path.

    Blobs are constructed through createBlob(org.nuxeo.ecm.core.blob.BlobInfo). The constructed blob's key, which will be stored in the document database, contains a path relative to the root.

    Since:
    7.10