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
The two pages
| Page | For | What it does |
|---|---|---|
| Files | Every user of Files | The 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 & access | Administrators | The 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
- 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. - 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. - Offer a folder — Folders & access → Folders: pick the server folder, or a folder under it, by its name, then Offer this folder.
- 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:
| Level | What it allows |
|---|---|
| Read | Browse, open, download, comment, signal, e-mail, send to a destination, Notify me. |
| Read & write | Also upload, make a folder, rename, move, delete, restore a version. |
| Manage | Also who may do what in that folder and who is told of new files. |
| No access | Takes 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 role | What it gives |
|---|---|
| Files — user | The 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 — administrator | Both pages: every folder, offering folders, access, notices, the whole activity. |
| Files — deposit by API | For 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.