PrizmDoc Server relies on the WorkFile for the temporary storage of files so they can be shared by the various services which operate on them. By default, Format Detection is enabled for all files added to the WorkFile service either directly or through viewing sessions. Users may wish to disable Format Detection to gain a small reduction in processing. Format Detection may be configured by editing the Watchdog configuration file located in the following default directories:
The WorkFile service configuration provides a Boolean parameter to enable or disable Format Detection:
Example |
Copy Code
|
---|---|
"workfileService": { ... "formatDetection": { "enabled": true }, ... }, |
The Format Detection Services can uniquely identify a large number of file types including MS Office documents, imaging formats, CAD formats, and many others. The addition of Format Detection makes the FileExtension parameters in the WorkFile and ViewingSession APIs optional in most cases.
When a document is identified by the Format Detection Service, if no extension is provided, the detected format and file extension will be associated with the document.
In the case where the document cannot be identified by the Format Detection Service, if a file extension was provided, then that extension will be used as a fallback to be associated with the document. If the document cannot be identified and no file extension was provided, an error code will be returned. See the WorkFile or ViewingSession API for more details.
When Format Detection is disabled, a file extension must always be provided when adding a document through the WorkFile or ViewingSession APIs.