Skip to main content

Folders & access

Files → Folders & access decides which folders of the server people see in Files and what they may do there. Nobody types a path: the server's folders are picked by their name, in a tree. The page has three tabs — Folders, Activity and, for a superuser, Settings. Nothing opens by itself: a folder is picked.


At a glance​

Folders & accessThe server's folders offered to people, who may do what in each, who is told when a file arrives; the activity.FoldersActivitySettingsTHE SERVER'S FOLDERS▾ Documents▸ Invoicesoffered · 3 access▸ Inbound▸ ContractsDOCUMENTS › INVOICESStop offering itDiscardSaveLabelInvoicesDescriptionInvoices to send and receivedKindSharedA folder per userVersions10 kept, for 90 daysWHO HAS ACCESSRole · AccountingReadRead & writeManageNo accesshereJSMITHReadRead & writeManageNo accesshereGive access to a role or a user…Give accessWHEN A FILE ARRIVESRole · AccountingIn LibertyE-mailBothThree tabsSettings for a superuserThe server's foldersby name, never a pathOffered ones markedwith their accessThe folder's settingslabel, kind, versionsWho may do whatper role or user, inherited belowWho is toldin Liberty, e-mail or both

Folders​

The server's folders on the left shows each server folder allowed in the settings by its name, the folders under it read as they are unfolded. An offered folder is marked with its access (offered · 3 access, offered · a folder per user). A folder offered outside the server folders is listed apart, flagged not on the server.

What the right part shows depends on the folder picked:

Folder pickedRight part
Not offeredNobody sees this folder in Files and Offer this folder: one click offers it as a shared folder, under its own name.
OfferedIts settings, then who may do what in it, and who is told when a file arrives.
Inside an offered folderWho may do what at that place: set here, an access replaces the one the offered folder gives, for that role or user.

An offered folder's settings​

FieldContent
LabelWhat people see in Files.
DescriptionShown under the label on the user's card.
KindShared — everyone given access sees the same files —, or A folder per user — each user gets a folder of his own under it, nobody else sees it (an administrator excepted).
VersionsHow many earlier contents are kept when a file is replaced or deleted, and for how many days (10 and 90 by default).

Stop offering it, Discard and Save sit above the form. Stopping asks first: the folder's access and notices are removed, its files stay on the server, untouched. A folder offered but missing on the disk is flagged: create it, or check the volume.

Who has access​

One line per role or user with access at that place: Who, Access — Read, Read & write, Manage, No access, changed with one click —, and Set on: here, or the folder it comes from. Remove takes away what is set here, and what comes from above applies again.

To add one: Give access to a role or a user…, a level, Give access. Rights add up across a user's roles. Set on a sub-folder, an access replaces the one from above for that role or user — No access takes it away there. What each level allows: Rights.

When a file arrives​

The roles, users or e-mail addresses told when a file arrives at that place or below, each one In Liberty, E-mail or Both (an address, by e-mail). Tell a role or a user… or an address, the channel, Add. Users may also ask for it themselves, with Notify me.


Activity​

Activity lists everything done in Files: When, Who, Did (put, downloaded, opened, renamed, moved, deleted, restored, commented, signalled, sent by e-mail, sent to a destination, made a folder, changed an access, a folder, the settings or a destination), Folder, File, To / from, Size, Detail. It is filtered by folder, by who, by action and by a few letters of a file, a recipient or a detail, and exported like any list.


Settings​

The Settings tab is a superuser's.

The server​

SettingContent
Name · Where on the server · StateOne line per drive mounted for the files (with Docker, a volume of the container): the name picked in Folders, its place on the server (/files), and found · writable, found · read only or not found. Add a server folder adds a line.
Versions storeWhere earlier versions and deleted files are kept. Blank: .nomafile-store in the first allowed folder, which Files hides — never listed, zipped, moved nor reachable. A folder another program reads should keep it elsewhere.
Largest e-mail (MB)The files attached to one e-mail, together (20 by default).

With Docker, mount the drive as a volume of the Liberty container (for example - /srv/files:/files) and allow /files here; the container writes as uid 1000. Save / Discard below. Saved with nothing offered yet, the page points to the next step, Offer a folder.

Destinations​

A destination is where users may send files from the Files page (Send to…): an API endpoint of Liberty — its connector, its server — and what each of its parameters takes. The list on the left, Add a destination; the destination picked on the right:

FieldContent
LabelWhat people pick in Send to….
EndpointAn API endpoint of Liberty (multipart said for one that sends a file part).
Answer saidThe field of its answer shown after sending; blank, the endpoint's own.
Its parametersEach parameter of the endpoint, with its value.

A parameter takes The file (a file part, always), The file's name, Its content, as text, Its content, in base64, The folder, The user, A fixed value, or Asked when sending (with a default, which may be blank). A destination whose endpoint is gone is flagged endpoint missing.

A destination is offered to whoever may call its endpoint (the permission api:<connector>:<endpoint>), on the files they may read. The file reaches the endpoint as Files reads it on the server, after the user's right on it was checked: the user never gives a path. Remove stops offering the destination; the endpoint itself stays as it is. How an API endpoint is defined: API connectors.

Deposit by API​

Another system — a customer's, an interface — can put files in a folder with an API token: an account with the role Files — deposit by API and Read & write on the folder. Each file is written in one step, so a program reading the folder (NomaUBL's input) never reads half a file. The tab shows the call, ready to adapt:

curl -X POST https://liberty.example.com/api/plugins/upload \
-H "Authorization: Bearer <API token>" \
-F callable=nomafile.files:j_upload \
-F 'params={"space": "<folder id>", "path": "<sub-folder>"}' \
-F files=@invoice.xml

Access​

The page is given by the Files — administrator role, which sees every folder and the whole activity. The Settings tab needs a superuser.


Tips & best practices​

  • Name the server folders as people know them (Documents, Exchange): the name is all an administrator sees in the tree.
  • Set access on the offered folder, refine below: a sub-folder's access replaces the one from above only for the role or user set there.
  • Give No access rather than leaving a gap: it says, in the list, that the place is closed on purpose.
  • Point a destination's answer at a readable field (a message, a reference): it is what users see after Send to….

See also​