Foldr provides an optional permission on each share called ‘Check Out’ that can be used to make other users aware that a file is being worked on. When a file is checked out, other users will see a padlock on the file in question and they will be unable to overwrite or make other changes to the file, such as directly edit the document through Microsoft Office.
Appliance update 184.108.40.206 (26th March 2019) enhances this feature with the option of using an SMB service on the server to automatically hold files open for the user when they are checked out. This will prevent others making changes to a file outside of Foldr, such as via a standard mapped drive in Explorer or other application.
Enabling the Check Out Permission for Users
The Check Out feature / permission is enabled on a per-share basis and is granular in the same way as any other share level permission in Foldr. i.e. it may be enabled for all users or specific individuals or groups as required.
Edit in Microsoft Office and Automated Check Out / Check In
The Foldr web app ‘Edit in Microsoft Office’ feature utilises the built-in WebDAV mechanism in Microsoft Office to allow users to easily download, edit Office files and save directly back to the server.
This feature in Office relies on and automatically uses file locks when a document is opened for editing from the browser in both Windows or macOS. The file lock and subsequent file release process is applied automatically in Foldr as a check out and check in when the user closes the document.
NOTE – Because Office relies on the file lock mechanism to function, files are automatically checked out and in when a user uses the Edit in Office button regardless of whether the check out permission is enabled on the share.
If read-only shares are being presented to users/groups in Foldr it is recommended that the administrator DENY the check out permission to any users that have read-only access. By denying the check out permission, the Edit in Office button is hidden from view in the web app. This will prevent the possibility of a user inadvertently checking a document out that they cannot write back to the server. Providing the read-only user closes the Office application, the file will be checked back in automatically by the Foldr server.
Enabling the Check Out Permission for Users
To enable Check Outs, navigate to Foldr Settings >> Shares and edit the share in question. Scroll down to the permissions section at the bottom of the screen and either edit the ‘Foldr Users’ group (which represents all users) or add a specific AD user / group as required.
When editing the user / group permission, click on the Check Outs tab and enable the Check Out permissions by selecting Allow
When the user next signs into Foldr, they will be able to check files out – Example below using the web app. The macOS and Windows apps provide access to the check out/in feature through the context menu >> Foldr option in Explorer and Finder.
A padlock icon marking that files are checked out will be shown. An orange icon is shown for files you have checked out yourself
A red icon is shown for files that have been checked out by others.
Clicking on a checked-out file will give more information about who checked the file out and when. Note that the Edit in Microsoft Office button is not available.
To check a file back in, the user can use the context menu (right click) or ‘Check’ In button in the file summary.
This will remove the padlock and make the file editable by others.
Manage Check Outs Permission
“Manage Check Outs” permission gives users the ability to check files in for other users.
Note – A user with the Manage Check Outs permission must also be granted Check Out in order to use the feature.
Automated Check Out and Check In – App compatibility
The Foldr web apps Edit in Microsoft Office button will automatically check files out and in as they are opened for editing and subsequently closed. The Check Out permission is not required on a share for this to take place.
The Windows drive mapping app provides an option to automatically Check Out / In Microsoft Office documents. There are requirements to this feature:
1. The user must have the Check Out permission enabled on the share in Foldr Settings
2. The Foldr drive must be mounted as in network rather than the default removable drive mode.
3. Automatic check outs must be enabled in the Foldr for Windows client (Settings >> Advanced tab)
This setting can be enabled en-masse by the administrator if required by configuring client the registry as described here.
The other Foldr apps (macOS, iOS and Android) do not support automatic check outs and the user should perform the check out manually using the context menu or long press on mobile.
Preventing Changes Outside of Foldr (SMB Service)
Check outs exist only when a user is interacting with files from within Foldr (i.e. if signed into the web app, desktop or mobile apps). Other devices such as domain bound workstations using standard mapped drives or other file access solutions are not aware of checkouts and as such it may be possible to modify/overwrite a file that is checked out through Foldr.
To prevent this there is an optional SMB daemon/service called ‘foldr-checkout’ on the Foldr server. Once the service is running and enabled / configured on shares it will watch for files that are checked out with specific file extensions and then hold these open over SMB to prevent changes elsewhere, until the file is checked in.
Note 1 – Should the Foldr server be restarted (such as following a software update), the service will attempt to reconnect and hold open any files that were previously checked out.
Note 2 – The foldr-checkout service only works against SMB shares.
Enabling the Foldr-Checkout SMB Service
1. Ensure you are running at least server version 220.127.116.11
2. Navigate to Appliance >> Services and scroll down to the foldr-checkouts service
3. Click the drop-down menu and select Enable
4. Start the service
5. Note the service is now ‘Active’
6. Navigate to Shares >> Edit share >> Advanced tab, scroll down and enable the switch labelled ‘Lock checked-out files?’
Note – the share must also have the ‘Check Out’ Permission enabled for users (everyone or specific users / groups) for the SMB lock to be effective.
7. Configure the file extensions that the server should hold open if checked out by users (MS Office file extensions are enabled by default)
Foldr-checkout service setup is now complete. When a user checks out a file with a matching file extension (as above) it will be held ‘open’ by the Foldr server on their behalf. Should another user attempt to edit a document outside of Foldr (such as via native mapped drive in Explorer) they will receive the typical file in use prompt.
The Receive notification when the original copy is available option will work as expected. When the Foldr user checks the file back in, they will receive the notification in their Office application where they can click Read-Write to start editing the file.