Skip to main content

Files

Files puts folders of the server — a disk or a share mounted for the files, a Docker volume — in front of the people who use them, inside Liberty. Users open the folders they are given, drop files or whole folders into them, open a PDF, an image or an XML in place, download, e-mail, signal a file to colleagues or send it to another system. Each file keeps its comments, its versions and its activity; a deleted file can be put back.

The files stay on the disk as they are: a program that reads the folder — NomaUBL's input, an interface — sees what users and other systems put there, and never half a file.

Files is a licensed application. Open it from the application switcher, under Files.


At a glance​

Files — the server's folders, for the people who use them1 · A drive on the servera Docker volume, a share2 · Settingseach server folder by name3 · Foldersoffered, who may do what4 · Filesdrop, open, shareDestinationsSend to… an API endpointDeposit by APIanother system, a tokenSuperuser · Settings tabFiles — administratorFolders & accessmounted for the fileswhoever may call the endpointFiles — usereach folder's rights

The two pages​

PageForWhat it does
FilesEvery user of FilesThe folders the user may open, as cards, then a folder's tree and content: upload, preview, download, e-mail, signal, send, move, rename, delete; comments, versions, activity; Notify me.
Folders & accessAdministratorsThe server's folders as a tree, each one offered or not; who may do what in an offered folder and its sub-folders; who is told when a file arrives; everyone's activity; the settings (a superuser's): the server folders by name, where versions are kept, the largest e-mail, the destinations of Send to…, the deposit by API.

Setting Files up​

  1. Mount the drive for the files. With Docker, add it as a volume of the Liberty container — for example - /srv/files:/files; the container writes as uid 1000.
  2. Allow the server folder — Folders & access → Settings → The server: one line per drive, a Name and Where on the server (/files). Its state says found · writable, found · read only or not found.
  3. Offer a folder — Folders & access → Folders: pick the server folder, or a folder under it, by its name, then Offer this folder.
  4. Give access to the roles or users who should see it, and say who is told when a file arrives.

Users then find the folder among their cards in Files. Until a folder is offered, the Files page says so, and offers Offer a folder to an administrator.


Rights​

Inside an offered folder, a role or a user is given one level, at any place:

LevelWhat it allows
ReadBrowse, open, download, comment, signal, e-mail, send to a destination, Notify me.
Read & writeAlso upload, make a folder, rename, move, delete, restore a version.
ManageAlso who may do what in that folder and who is told of new files.
No accessTakes the access away at that place and below.

The nearest setting above a place applies; rights add up across a user's roles. A user given access only to a sub-folder passes through the folders above it to reach it, without seeing their content. Every right is checked on the server, and a path never leaves its folder.


Its database​

What Files records — the folders offered, the rights, the versions' index, the comments, the activity — is kept in its own database, like the other applications: the nomafile pool, on the framework's PostgreSQL server, created with the applications' databases; its tables are made at first use. Another database is set in Liberty → Pools. The earlier versions and the deleted files are kept on disk, in the versions store (see Settings).


Access​

Predefined roleWhat it gives
Files — userThe Files page: the folders the user is given access to — each folder's rights decide what he may do there —, and Send to… where he may call the destination's endpoint.
Files — administratorBoth pages: every folder, offering folders, access, notices, the whole activity.
Files — deposit by APIFor another system: an API token to put files in the folders it is given Read & write on, and list them. See Deposit by API.

The Settings tab of Folders & access is a superuser's.


Tips & best practices​

  • Offer the narrowest folder that serves a team, and give access to roles rather than to users: people come and go, roles stay.
  • Keep the versions store out of a folder another program reads (NomaUBL's input, an interface's drop folder): set it elsewhere in the settings.
  • Use a folder per user for personal drops: each user gets his own, nobody else sees it.
  • Ask users to click Notify me on the folders they wait on, instead of checking them.

See also​