To configure the Share Public Link feature with registry
settings:
-
Add or edit this registry setting on the M-Files Server
computer:
Value name |
EnableSharedPublicLinks |
Value type |
REG_DWORD |
Description |
Enables or disables the Share Public
Link feature on the server. When
disabled, public links cannot be generated with clients
or APIs and previously shared public links no longer
operate.
If you disable this feature, make sure that you also
specify the same settings for M-Files Desktop and the classic M-Files Web (see the steps 10 to 12).
|
Default value |
1
|
Valid values |
1
0
|
The Share Public Link option is
enabled.
The Share Public Link option is
disabled.
|
-
Use Windows Task Manager to restart the MFServer service:
-
Right-click the taskbar and select Task
Manager.
Result:The Task Manager window is
opened.
-
Open the Services tab.
-
Right-click the MFServer service and select
Restart.
After you have configured the
Share Public Link
feature for
M-Files Server, use
Custom Vault
Data to configure public links for
M-Files Desktop and
the classic
M-Files Web:
-
Expand the Custom Vault Data section in
Configurations.
-
Expand .
-
Click Add Namespace and expand the new
namespace node.
-
In Storage Type, select MFConfigurationValue.
-
In Namespace, enter this value: M-Files.Core.Sharing.PublicLinks.Settings
-
Enter values for Group, Namespace Label, and Namespace Description.
-
In the navigation area, expand and click Configuration.
The namespace group name and label are the ones that you set in step
8. For example, .
To disable or enable the Share Public Link
feature:
-
Click Add Named Value and expand the new
named value node.
-
In Name, enter Enabled.
-
Do one of these steps:
To specify whether public links can point to the latest version of the
shared files or only to the specific, shared version:
-
Click Add Named Value and expand the new
named value node.
-
In Name, enter this value: AllowSharingLatestVersion
-
Do one of these steps:
To specify the default expiration time for public links in the classic M-Files Web:
-
Do the steps from 3 to 9, but use this value in Namespace: M-Files.Core.Client.Settings
-
Click Add Named Value and expand the new
named value node.
-
In Name, enter this value: DefaultExpireInDays
-
In Value, enter the expiration time in
days. For example:
10
In the example, the expiration time for public links is 10 days if the user
does not change it in the Share Public Link dialog.
After you have configured the Share Public Link
feature, restart the vault so that the changes are taken into use:
-
Restart the vault.