Note: This content is no longer updated.
For the latest content, please go to the user guide for
M-Files Online. For information on the supported product
versions, refer to our
lifecycle policy.
The registry settings listed here can be used to enable or disable the Share
Public Link feature as well as to enable or disable specific sharing options
for public links. For more information on public links, see Sharing Public Links.
Complete the following steps to configure the
Share Public Link feature:
-
Add or modify the following 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 side. When disabled, public links cannot be generated via clients
or APIs. Also, previously shared public links stop working if the feature is
disabled.
If you disable this feature, make sure that you also apply the corresponding
settings for M-Files Desktop and M-Files Web
(see the steps 7
to 9:).
|
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 M-Files Named Value Manager to configure public
links for M-Files Desktop and M-Files Web:
-
Open M-Files Named Value Manager.
-
Use the Server drop-down menu to select the M-Files server and then the Vault drop-down menu to select the vault.
-
Use the Storage Type drop-down menu to select the
MFConfigurationValue storage.
-
In the Namespace field, enter the following value:
M-Files.Core.Sharing.PublicLinks.Settings
To disable or enable the
Share Public Link feature,
complete the steps
7 to
9:
-
Click Add... to add a new key.
-
In the left-side pane, double-click New Named Value
Key and enter the following value: Enabled
-
Complete either of the following steps:
To specify whether public links are allowed to point to the latest version of
shared files or only to the specific version that user has shared, complete the steps from
10 to
12:
-
Click Add... to add a new key.
-
In the left-side pane, double-click New Named Value
Key and enter the following value: AllowSharingLatestVersion
-
Complete either of the following steps:
To specify the default expiration time for public links in
M-Files Web, complete the steps
13 to
16:
-
In the Namespace field, enter the following value:
M-Files.Core.Client.Settings
-
Click Add... to add a new key.
-
In the left-side pane, double-click New Named Value
Key and enter the following value: DefaultExpireInDays
-
Select the newly added key and add the expiration time in days to the right-side pane
as a integer, for instance:
10
In the example above, the default expiration time for public links is 10 days. The user
can always change the expiration date in the Share Public Link
dialog.
After you have configured the Share Public Link feature,
the vault has to be taken offline and brought back online for the changes to become
effective.
-
Restart the vault.
The Share Public Link feature is now
configured according to the configuration options that you have specified.