Setting a Primary File Type for Multi-File Documents
You can set a file type of your choice to act as the primary file type for multi-file documents in the vault. This has these effects:
- The icon of the specified file type is shown as the icon of the multi-file document.
- The Document Preview shows the preview of the primary file when the multi-file document is selected.
- Double-clicking the object does the default action of the primary file type.
Note: This feature is supported in the classic M-Files Desktop only. The common Windows
dialogs, such as Open or Save As, are not affected by the
primary file type settings.
To specify a primary file type to be used in a vault, do these steps on the M-Files server computer:
-
- Expand Multi-File Documents and select Primary Files.
- Click Add Document Class.
-
Expand the newly created node and select a class value for the Document
Class setting.
This value specifies the object class to which the setting applies.
-
Expand File Name Filters and click Add Filter.
These filtering settings specify the primary file type for the selected class.
-
Expand the newly created node and specify a value for the Filter setting.
The value can include wildcard characters, for example: order-?.txt or *.pdf.Enter only a single value for each setting node. You can, however, add as many setting nodes with the Add Filter command as you need.The filtering values are evaluated from top to bottom. You can move a setting up or down by right-clicking it (the node level under File Name Filters) and selecting Move Up or Move Down in the context menu.
- Click Save once you are done with your changes.
-
Restart the vault for the settings to take
effect.
Note: Taking a vault offline should always be done in a controlled manner and the vault users should be notified beforehand.