Document Upload
If you want to use the Weave document management system to store the documents then you need to tell Weave where it should store the documents.
There are two storage providers that are available to manage the storage of the documents, one that stores the documents on the file system and the other that stores them in a database.
You can only have one document storage provider, so you should only configure one option.
File document storage configuration
File system example storage configuration
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="urn:com.cohga.server.config#1.0" xmlns:storagefile="urn:com.cohga.dms.storage.document.file#1.0"> <storagefile:config> <directory>d:\\weave\\documents</directory> </storagefile:config> </config>
There's a single configuration option for the file system document storage and that's the name of a directory where the files will be stored.
Database documents storage configuration
Database example storage configuration
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="urn:com.cohga.server.config#1.0" xmlns:storagedb="urn:com.cohga.dms.storage.document.db#1.0"> <storagedb:storage> <datasource>datasource.dms</datasource> </storagedb:storage> </config>
There's a single configuration option for the database document storage and that's the name of an existing datasource.