Skip to content

File sharing ​

Share folders and files in a workspace per team, with permissions per folder, versions, previews and a trash. It works like a document library of Box or SharePoint.
The files are kept where Exment keeps its files (local, S3, Azure, FTP and so on, as set now).

※This feature is available in Exment v7.2.1 or later.

Getting started ​

File sharing is off at first. When a system administrator turns "File sharing" on in "Admin Setting" > "Feature Management", "File sharing" appears in the side menu. Who may use it (role groups) is also chosen in Feature Management.

A workspace (Japanese screen)

Workspaces ​

A workspace is where a team keeps its files (a site in SharePoint).

  • Make one with "New workspace". The user who makes it becomes its manager. Who may make workspaces is set with EXMENT_FILE_SERVER_WORKSPACE_CREATE in .env (admin: system administrators only, all: everyone).
  • In "Workspace settings", decide:
ItemContent
Name, descriptionThe name and description of the workspace.
MembersUsers and organizations with their permission (View, Upload, Edit, Manage). At least one manager is needed.
Space limit (GB)Empty for no limit. Older versions and the trash count too.
Days in the trashFiles are deleted for good after these days. 0 keeps them until they are deleted by hand.
Versions keptHow many older versions of a file are kept.
Columns (metadata)Columns for the files of this workspace. See "Columns (metadata)" below.

The top shows the workspaces you can open, "Favorites", "Files changed lately" and "Shared with me".

Folders and files ​

  • Use "New folder", "Upload files", "Upload a folder", or drag and drop. Large files are sent in parts, so an upload that breaks off goes on from where it stopped.
  • A file or folder can be renamed, moved, copied, downloaded (several as a ZIP), deleted and added to favorites.
  • Deleted items go to the "Trash", where they can be restored ("Restore") or deleted for good ("Delete for good").

Inside a folder (Japanese screen)

Permissions ​

There are four permissions. A higher one can do all that the lower ones can.

PermissionWhat it allows
ViewSee and download
UploadAdd files
EditRename, move, delete, upload new versions, make share links
ManageChange permissions, discard a check out, approve
  • Folders and files take the permissions of their parent folder (or the workspace).
  • "Stop inheriting permissions" gives a folder or file permissions of its own; "Inherit permissions" puts it back.
  • System administrators can manage all workspaces.

Versions and checkout ​

  • Uploading a file with the same name, or "Upload a new version", makes a new version. In "Version history", download an older version, or "Restore this version" to save its content as a new version.
  • "Check out" stops others from changing or deleting the file until you "Check in". Users with Manage can "Discard check out".

Previews ​

Images, video, audio, PDF and text are shown on the page. How Office files (docx, xlsx, pptx) are shown depends on the server.

On the serverOffice files
LibreOffice (EXMENT_FILE_SERVER_SOFFICE_PATH)Shown as a PDF.
The official plugin "Groupware""Open in Office" opens it read-only in the browser's Office (ibisOffice). With LibreOffice too, tabs switch between them.
NeitherOnly the text in the file is shown. Download it to see the layout.

With Groupware's ibisOffice, neither LibreOffice nor Docker is needed, and it works on rental servers. For the setup and the web server settings, see Groupware.

※html, svg and similar files are not shown on the page for safety; they can only be downloaded.

※Files that came in through a request link get no preview and no text extraction when they are opened. They are made only when a user with Manage presses "Make the preview".

A file (Japanese screen)

Give files and folders to people outside who do not log in, or receive files from them. Make links in "Share links for people outside" on the page of a file.

KindContentWho can make it
Share link (people outside see and download)A folder shows what is in it. Without "Allow the download", it is preview only.Users with Edit
Request link (people outside upload)People outside put files in a folder. They cannot see others' files. A file with the same name is not overwritten: it becomes "name (2)".Users with Edit (from 7.2.1; links made before by users with Upload only stop opening)
  • A link can have an expiry date, a password and a number of times it can be opened. A password has 8 characters or more (EXMENT_FILE_SERVER_SHARE_PASSWORD_MIN). "Take back" stops it at any time.
  • An invalid link (expired, revoked, opened too many times and so on) always shows "The link cannot be opened".
  • A new share link ends in 30 days by default, and in 90 days at most (EXMENT_FILE_SERVER_SHARE_DEFAULT_DAYS, EXMENT_FILE_SERVER_SHARE_MAX_DAYS; 0 = no default, no limit). Older links without an end are marked "No end" in the link list.
  • The address of a share link is shown only to the user who made it and to the users with Manage on the file or folder.
  • For people inside, use "Copy the internal link": only those who may see the file can open it.
  • To turn share links off, set EXMENT_FILE_SERVER_EXTERNAL_SHARE=false in .env. The longest period can be changed with EXMENT_FILE_SERVER_SHARE_MAX_DAYS.
  • Share links (/share/...) are for people outside, so the web IP filter of the system settings is not applied to them by default. To let them open only from inside, set EXMENT_FILE_SERVER_SHARE_WEB_IP_FILTER=true in .env. It is read when the routes are made: a site that uses php artisan route:cache runs it again after the change.

Columns (metadata) ​

In the workspace settings, make columns for the files (as "Customer" or "Kind").

  • Types: text, multi-line, number, date, choice, multiple choice, yes/no. Each can be required, have a default and be shown in the list.
  • The list can be filtered by a column (also "empty"), sorted and grouped.

In "Related data" on the page of a file, link it to records of Exment tables (as a customer). The page of the record shows a "File sharing files" box. Both show only what the user may see.

"Search" finds files by name, column values and the text in the files. Only files the user may see are shown.

  • Text is taken from text, HTML, Office (docx, xlsx, pptx) and OpenDocument files. PDF needs pdftotext (EXMENT_FILE_SERVER_PDFTOTEXT_PATH); images and scanned PDFs need tesseract (EXMENT_FILE_SERVER_OCR_PATH).
  • The database is searched by default. With EXMENT_FILE_SERVER_MEILI=true, Meilisearch is used (with its own index exment_files, apart from the index of the data).
FeatureContent
ApprovalWith "approval needed" in the "Rules" of a folder, files put there are "Waiting for approval". Until then only the uploader and the managers see them. A user with Manage chooses "Approve" or "Send back".
Legal holdOn a workspace, folder or file, nothing can be deleted, and older versions stay. Only system administrators can set or clear it (users with Manage see it only).
RetentionWith days set in the workspace settings, a file cannot be deleted for those days. Only system administrators can set or clear it (users with Manage see it only).
Who may downloadUsers below the chosen permission can only view (see "View only" below).
WatermarkThe name of the viewer and the time are shown over the preview.
Audit logViews, downloads, uploads, deletions, permission changes, share links and more are logged, and can be exported to CSV.
Follow, commentsWhen a followed workspace, folder or file changes, a bell notice and mail are sent. @user code in a comment notifies that user.

View only ​

For users below "Who may download" of the workspace, and for share links without "Allow download", files are shown like this.

FileHow it is shown
ImagesAs a smaller copy.
Office, PDFThrough the converted PDF, when there is one.
Text, video, audioNot shown.

Each view is written to the audit log.

Server ​

  • Daily job: files kept in the trash past their days are deleted by php artisan exment:file-server-purge (daily at 3:30). Set up the task schedule.
  • Queue: thumbnails, previews and text extraction run on the queue.
  • Extract text again: php artisan exment:file-server-index extracts the text of files not done yet and rebuilds the Meilisearch index.
  • Other software (all optional): LibreOffice (Office previews), pdftotext (text of PDF), tesseract (OCR), Meilisearch (faster search).
  • LibreOffice without the network: Office files may load URLs from outside. Put a command before LibreOffice in EXMENT_FILE_SERVER_SOFFICE_PREFIX to convert without the network (e.g. unshare -rn, firejail --net=none --quiet). Check first that the command works on the server.
  • Upload limits: large files are sent in parts. A file is up to 2 GB (EXMENT_FILE_SERVER_MAX_FILE_SIZE), a user may have up to 20 uploads not finished (EXMENT_FILE_SERVER_MAX_UPLOADS), up to 10 GB together (EXMENT_FILE_SERVER_MAX_UPLOAD_BYTES). Uploads not finished count toward the space of the workspace. One with nothing sent for 60 minutes is not counted, and is removed when the user starts another.

Main settings (.env) ​

SettingDefaultContent
EXMENT_FILE_SERVER_WORKSPACE_CREATEadminWho may make workspaces (admin, all)
EXMENT_FILE_SERVER_MAX_FILE_SIZE2147483648 (2 GB)Max size of a file (bytes; 0 = no limit; 2 GB from 7.2.1)
EXMENT_FILE_SERVER_MAX_UPLOADS20Uploads a user may have not finished
EXMENT_FILE_SERVER_MAX_UPLOAD_BYTES10737418240 (10 GB)Bytes of a user's uploads not finished, together (0 = no limit)
EXMENT_FILE_SERVER_EXTERNAL_SHAREtrueWhether share links are used
EXMENT_FILE_SERVER_SHARE_DEFAULT_DAYS30Default days of a new share link (0 = no default)
EXMENT_FILE_SERVER_SHARE_MAX_DAYS90Max days of a share link (0 = no limit, links without an end allowed)
EXMENT_FILE_SERVER_SHARE_PATHshareThe first part of the URL of a share link
EXMENT_FILE_SERVER_SHARE_PASSWORD_MIN8The shortest password of a share link
EXMENT_FILE_SERVER_SHARE_WEB_IP_FILTERfalseWhether share links take the web IP filter too
EXMENT_FILE_SERVER_SOFFICE_PATHnoneWhere LibreOffice (soffice) is
EXMENT_FILE_SERVER_SOFFICE_PREFIXnoneA command put before LibreOffice (to run it without the network)
EXMENT_FILE_SERVER_PDFTOTEXT_PATHnoneWhere pdftotext is
EXMENT_FILE_SERVER_OCR_PATHnoneWhere tesseract is
EXMENT_FILE_SERVER_MEILIfalseWhether Meilisearch is used
EXMENT_FILE_SERVER_AUDITtrueWhether the audit log is kept
EXMENT_FILE_SERVER_NOTIFYtrueWhether follow notices are sent