Files - edmozley/freeitsm GitHub Wiki
Somewhere to keep files and folders that need to reach particular people, with a record of everything that happens to them. An installer too big to email, a contract only finance should see, a policy you need to prove somebody opened - they go in Files, and Files says who looked at them, when, and from where.
It looks and works like a Windows desktop on purpose: everybody already knows how to use one. For how it is built, see the Files developer guide; for the phone layout, Mobile: Files.
| ๐ Private until shared | Nothing is visible to anybody until it has been shared with them. There is no "everyone" setting, and administrators are not let in automatically. |
| ๐ฅ๏ธ A desktop | Desktop icons, windows you can drag, resize and snap, a taskbar with live previews, and a start menu. |
| ๐ Documents | A file manager with a folder tree, Icons and Details views, a filter box, right-click menus, cut, copy and paste, and drag and drop. |
| โฌ๏ธ Any size | Files go up in pieces, so a multi-gigabyte installer is fine. Every version is kept, with its SHA-256 fingerprint. |
| ๐๏ธ Open without downloading | PDFs, Word documents, spreadsheets, images, video, audio, text - and zip files, browsed like a folder. |
| ๐๏ธ View only and watermarks | Let someone read a file without taking a copy, and stamp their name, the time and their IP address across it. |
| ๐งพ Everything audited | Opening a folder, viewing, downloading, uploading, renaming, moving, deleting, permission changes, and every refusal. |
| ๐ด Make available offline | With S3-compatible storage, keep chosen files and folders on the server as well, so they open while S3 cannot be reached. See below. |
Files opens as a desktop. Double-click an icon to open it:
- Documents - the file manager (see below).
- Recent - files you have opened, downloaded or uploaded lately.
- Search - finds files and folders by name, anywhere you have access. It searches names, not what is inside the files.
- Help - the guide, in a window of its own.
- Settings - only if you have one of the Files settings permissions (see Settings). It opens the settings page rather than a window.
Windows move by their title bar and resize from any edge or corner. They behave the way Windows does:
- Drag a window to the top of the screen to maximise it, or to the left or right edge to fill that half of the screen. An outline shows where it will go before you let go.
- When a window fills one half, the other half offers your other open windows as live previews, most recently used first. Click one to fill that side; press Esc or click anywhere else to leave it empty. (5.10.0)
- Drag a maximised or half-screen window away and it goes back to its normal size under the pointer.
- Double-click the title bar to maximise or restore.
- Each kind of window remembers its size and position for you, so Documents opens where you left it next time.
Every open window has a button on the taskbar. Click it to bring the window to the front, click again to minimise it. Hover over a button to see a live preview of the window - including what a PDF or video in it is showing - and click the preview to bring it back. Right-click a taskbar button for Minimise, Maximise and Close window.
While files are uploading, the taskbar shows how many are still going, and clicking it opens the Transfers window. The clock sits on the right.
The button at the bottom left (or Ctrl+Esc) opens the start menu: every app, your Recent files, a search box, All modules (the rest of FreeITSM), and Sign out. If you hide the top bar, this is how you get around.
Right-click the desktop and choose Personalise (it is in the start menu too). Three choices, and they are yours alone:
- Desktop colour - a swatch, or Choose any colour.
- Top navigation bar - Always show, Show when the mouse reaches the top, or Hide - use the start menu instead.
- Opening several files (5.11.0) - what Enter does with several files selected: In one viewer (the default - step through them with the arrow keys) or In separate windows (up to 10; more than that still open in one viewer). See Several files at once.
The logo in the corner of the desktop is not a personal choice: an administrator sets it under System -> Branding (see Settings).
The Documents window shows your folders on the left and the open folder on the right.
- Icons and Details - switch with the buttons on the right of the toolbar. In Details, click a column heading to sort by it. Files remembers which view you like.
- Filter this folder - type in the box at the top right (or press Ctrl+F) to narrow the open folder down to names containing what you typed. Every window has its own.
- Back, Forward, Up and Refresh work as in Windows, and so do Backspace, Alt+Left, Alt+Right and Alt+Up.
- Selecting - click to select, Ctrl+click to add to the selection, Shift+click for a range, Ctrl+A for everything, or drag a box around several things starting from empty space.
- Right-click anything for what you can do with it: Open, Open in new window, Download, Cut, Copy, Paste into folder, Create shortcut, Rename, Delete, Permissions and Properties. Things you are not allowed to do are greyed out.
- Cut, Copy and Paste - Ctrl+X, Ctrl+C and Ctrl+V. F2 renames, Delete deletes, F5 refreshes. Clicking the name of something already selected renames it in place, as it does in Windows.
- Properties shows a folder's size and contents, or a file's details and every version of it, each with its SHA-256 fingerprint and buttons to open or download that version.
"Documents" at the top is not the real top of the tree: it shows every folder that has been shared with you. If you were given a folder deep inside someone else's, it appears there on its own with its full path as a hint - you never see the folders above it.
Files always go inside a folder. Only folders can sit at the top.
5.4.0 - #293, built by @cloudcogsio.
Deleting a file or folder moves it to the Recycle bin on the desktop (and in the start menu). A deleted folder is one entry holding everything that was in it, as in Windows. The bin shows what you could see before it was deleted - its name, where it was, when, who deleted it and its size - and nothing from folders you cannot open.
- Restore puts it back where it was. If something with the same name is there now, it comes back as "Name (2)" - never as a new version, never over the top. If the folder it was in is in the bin too, you are asked to restore that folder first. Restoring needs Modify, the same as deleting.
- Look inside (or double-click) shows a deleted folder's files, read-only, before you decide.
- Delete permanently and Empty remove it for good, with every version and the stored file - this cannot be undone. Deleting a folder permanently needs Modify on it and on every folder inside it. A copy shares its stored file with the original, so that file is only removed once nothing uses it.
- Deleted along with a folder above it. If a folder of yours went into the bin with a folder above it that you cannot open, it shows in your bin on its own, without the other folder's name. Restore brings it back by itself to where that folder was, and exactly the same people can open it as before.
- Links from tickets, tasks and other records say the file has been deleted while it is in the bin, work again once it is restored, and after a permanent delete stay on the record - so it still shows something was there - but never open.
How long things stay is set in Files โ Settings โ Recycle bin (below). Until that is saved, nothing is ever deleted automatically.
Deleting or moving a folder takes everything in it along, so it needs Modify on the folder and on every folder inside it, however deep - as Windows does. If something inside is kept from you, you are told you cannot, with one name at most, and only a name you can already see:
You cannot delete "Projects": you do not have permission to change "Plans", and other items inside it. Ask whoever manages it.
You cannot move "Projects": it contains folders you do not have access to. Ask whoever manages this folder.
There is never a list, and never the name of a folder kept from you. An administrator can see exactly what is in the way with System โ Debug Tools โ D020 - pick the person and the folder, and every folder and file inside is listed with PASS or FAIL and why. Copying is not affected: a copy only ever takes what you may download.
Drag files from your computer into a folder window (or onto a folder in it, the folder tree or the address bar), or use Upload on the toolbar.
- Size. Files go up in 4 MB pieces, two files at a time, so the server's own PHP upload limits do not apply. The only limit is Largest upload in Files -> Settings -> Storage, 4096 MB (4 GB) unless an administrator changes it.
- Progress. The Transfers window shows each upload, and any of them can be cancelled. Closing the browser tab while something is uploading asks you first.
- The same name. If the folder already has a file with that name you choose New version (the old one is kept in its version history), Keep both (the new one gets a number, like "Report (2).pdf"), Overwrite (the old file and every earlier version are deleted - only where an administrator has switched it on) or Skip. Which of these are offered, and which is highlighted, is set in Files -> Settings -> Versions (5.2.0). With several files going up you can tick Do this for every clash in this upload.
- Versions. See Versions below.
A dropped connection stops that upload with "The connection dropped." - start it again. Downloads are different: a download that drops can resume where it stopped.
Dropping a file on the desktop itself does nothing but tell you to drop it into a folder window - the desktop is not a folder.
When a file is replaced, the old copy is kept as an earlier version. Asked for in #303.
- You can see it. In Details view a file with more than one version shows a small v3 badge.
- Version history (right-click a file) lists every version - who uploaded it and when, its size, its SHA-256 fingerprint, any note, and Restored from version N where it is a restore. Open or download any of them.
- Upload new version (right-click a file) picks a file from your computer and makes it this file's next version whatever the picked file is called, and asks What changed? - an optional note shown against the version.
- Restore makes an earlier version the current one again, as a new version. The version that was current stays in the history, so restoring never loses anything.
- Delete removes an earlier version for good. It needs Modify on the folder, and the current version cannot be deleted.
- How many are kept is set in Files -> Settings -> Versions: every version (the default), or the newest 2, 3, 5, 10, 20 or 50. Older ones are removed when a file gets a new version, and once a day by the Files versions tidy-up job. The current version is always kept.
A copied file shares its source's stored bytes, and so does a restored version: those bytes are only ever deleted once nothing at all uses them. How it works: Files versions - Developer Guide.
Double-click a file to open it in a viewer window, without downloading it.
| Kind | How it is shown |
|---|---|
| Mozilla's pdf.js, page by page. A long manual opens at page one straight away, because only the pages you look at are fetched. | |
| Word (.docx) | A simplified page - the text, headings, lists, tables and pictures. Layout, fonts and page breaks may differ from Word, and the viewer says so. Older .doc files have no preview. |
| Spreadsheets (.xlsx, .xlsm, .xls, .ods, .csv) | A grid with a tab for each sheet, up to 5,000 rows and 200 columns; beyond that it tells you to download the file. |
| Images (PNG, JPG, GIF, WebP, BMP) | As themselves, with zoom. |
| Video and audio (MP4, WebM, MOV, MP3, WAV, FLAC and similar) | The browser's own player. Whether a format plays depends on the browser. |
| Text and code (.txt, .log, .json, .ps1, .sql, .pem and many more) | As plain text, never run. |
| Zip files | Browsed like a folder - see below. |
| Anything else | Its icon, name and size, and a Download button if you are allowed to download it. |
PDFs, Word documents and images have Zoom in, Zoom out and Fit to width. A PDF or a picture opens fitted to the window and keeps fitting as you resize or maximise the window - until you zoom in or out yourself; Fit hands it back. (Before 4.4.0 a picture fitted only when it opened.)
A zip opens as a list of the files and folders inside it. Click into the folders, and open any file in the same viewer - including another zip inside the zip. Back to returns you to the list.
The zip is unpacked in your own browser, so nothing is extracted on the server. Opening or downloading something inside a zip is still recorded in the audit trail, with the name of the file inside it.
Asked for in #424 by @proseriox: open a folder of photos and go through them without closing and reopening each one.
Stepping through a folder. Open any file and the viewer's toolbar starts with โน 3 of 12 โบ. Previous and Next - or the left and right arrow keys - move to the file before or after it in the folder, in the order the folder is sorted and filtered. Home and End go to the first and the last. A PDF, a spreadsheet or a zip is shown exactly as it would be on its own; the window's title follows the file.
Opening a selection. Select several files and press Enter, or right-click and choose Open: just those files open in one viewer, in the order they are listed. Folders and shortcuts in the selection are left out.
Side by side. Right-click a selection of 2 to 10 files and choose Open separately for a window each - handy with snapping to compare two. If you would rather Enter always did that, change Opening several files in Personalise. More than 10 files open in one viewer whatever the setting: 50 windows is a mess, not a comparison.
Slideshow. When the files include pictures, the toolbar has Slideshow. It shows the pictures one after another, full screen where the browser allows it, about four seconds each, skipping anything that is not a picture. Space (or Pause) pauses it, Escape (or Stop) stops it and leaves you on the picture you were looking at. It plays once, from the picture you are on to the last - see below for why.
The same rules as opening a file. Every file you step to is opened through the server as if you had double-clicked it: it needs View on its folder, View only and the watermark apply to it, and it is recorded in the audit trail. A file you lost access to, or one deleted since you selected it, shows why it cannot be opened, and you can step on past it. Nothing is fetched ahead of time, so the audit trail only shows what you actually looked at - which is also why the slideshow does not go round and round: left running over lunch, it would add an entry every four seconds.
On a phone, a file still opens on its own, full screen.
Pictures (JPEG, PNG, GIF, WebP) and PDFs show a small picture of themselves instead of their type icon - in Icons, and in the bigger Thumbnails view (the picture button on the right of the toolbar, or right-click -> View -> Thumbnails). The first page of a PDF is its thumbnail.
Made once, kept for everybody. A thumbnail is a small picture of a few kilobytes, made once and stored. Every copy of the same file shares it, and a new version gets its own. So a folder of a hundred photos or a hundred PDFs opens as quickly as a folder of anything else: nothing is shrunk or drawn while you wait.
| Who makes it | When | |
|---|---|---|
| A picture | The server | When it is uploaded - or, for one that arrived another way, the first time it is shown |
| A PDF | The uploader's browser, from the file on their own computer | Straight after the upload |
| An older PDF, or one saved from a ticket | The browser of someone who can upload to that folder | The first time they open the folder - two at a time, only those on screen |
Until a PDF has one, it shows the PDF icon.
Make thumbnail (right-click a picture or PDF) makes a missing one, or redraws one that looks wrong. For a PDF you need Upload on the folder, because the picture comes from your browser.
What has none: a folder with a watermark - a clean picture of the page would get round the watermark - and very large pictures (over about 40 megapixels), which are set aside rather than risk the server's memory. SVG, HEIC and other files keep their type icon.
Privacy: you only see a thumbnail of a file you could open. Showing thumbnails is not recorded in the audit trail as opening the file (a folder of a hundred pictures would bury the real opens); making one is recorded once.
The server needs PHP's GD extension to make thumbnails. The Docker image includes it from 5.10.0; a manual install without it shows type icons everywhere, and Files -> Settings -> Thumbnails says so.
Someone with View but not Download on a folder can open its files, but:
- there is no Download button, and the viewer shows View only;
- they cannot right-click or select the contents, and video and audio offer no download;
- printing the page prints a blank page;
- the file's bytes come through a short-lived link that works only in their own signed-in browser, for that one file, for four hours, and stops working the moment their access is taken away.
Each folder can also turn on a watermark: right-click the folder, Permissions, then Watermark. Every file opened from that folder - and the folders inside it - then shows the viewer's name, the date and time, and their IP address across the page, so a screenshot shows who took it. A folder follows its parent folder unless it is set otherwise, and nothing is watermarked unless somebody turns it on.
Important
This is a deterrent, not a lock. Anything a browser can show can be photographed or captured, and a determined person with View access can always get a copy of what they are looking at. View only and the watermark make leaking deliberate and traceable, not impossible. If someone must not have a document, do not give them View.
Permissions are set on folders. A file always has the permissions of the folder it is in. Right-click a folder and choose Permissions.
There are five levels, and each includes the ones before it:
| Level | Lets them |
|---|---|
| View | see the folder and open its files in the viewer |
| Download | also take a copy - download, and copy files elsewhere in Files |
| Upload | also add files and subfolders, and upload new versions |
| Modify | also rename, move and delete - a folder only if they have Modify on everything inside it (why) |
| Full control | also change the permissions, the inheritance and the watermark |
- People and teams. Add a person or a team in the Permissions window. Somebody who is in two teams with different levels gets the higher one.
- Hidden means not found. A folder you have no access to does not exist for you - not in Documents, not in Search, not in your recent files, and not as a "this name is taken" message. Asking for it by its number gets "not found", never "access denied".
- No Deny. Access is only ever granted. To keep someone out of a subfolder, stop it inheriting (see below).
- Administrators are not special. Being a FreeITSM administrator does not let you into a folder. The way in for someone who needs it is Take ownership, which is recorded.
- Top-level folders. Creating a folder at the top level is itself a permission - the Folders tab of Files in System -> Roles. Whoever creates a top-level folder gets Full control of it automatically, so they are not locked out of what they just made. A new top-level folder is shared with nobody else until they add people to it.
- Your own Full control. If you remove your own Full control, Files warns you first: unless you have it some other way, you will not be able to change the permissions again.
The person also needs the Files module itself (System -> Modules). A grant to someone without the module does nothing until they are given it.
A new folder includes the permissions of the folder it is in, and of that folder's parent, all the way up. In the Permissions window, inherited entries are shown with the folder they come from - change them on that folder.
Untick Include permissions from the parent folder to stop a folder inheriting. Files asks what should happen to the permissions it inherited:
- Copy - they become the folder's own entries, a starting point you can then trim.
- Remove - only the folder's own entries are left.
Moving a folder that inherits changes what it inherits: it now gets its new parent's permissions. The move is recorded in the audit trail with a note that the folder inherits.
Copies always inherit from where they land, and copying never brings along anything you could not download yourself - a subfolder you cannot reach is simply left out of the copy.
Right-click a file or folder and choose Create shortcut:
- In this folder - beside the original, for everyone who can open that folder. You need Upload there. A top-level folder has nowhere beside it, so its shortcut can only go on your desktop.
- On desktop - on your own desktop. Nobody else sees it.
A shortcut opens what it points to, but gives nobody access. Opening it goes through the original's own permissions, and someone who cannot see the original never sees a shortcut to it in a folder either. If the original is deleted or stops being shared with you, a desktop shortcut stays but is greyed out and says so when opened.
Right-click a shortcut for Open file location, Rename, Delete and Properties. Deleting a shortcut leaves the original alone.
Drag works between any windows, the folder tree, the address bar and the desktop:
- Onto a folder - files, folders and shortcuts move there. Hold Ctrl to copy instead. Moving needs Modify on what you move; copying needs Download; either needs Upload on the folder they land in.
- Onto the desktop - nothing is stored on the desktop itself, so a file or folder dropped there becomes a desktop shortcut to it. A shortcut dragged from a folder moves to your desktop, or with Ctrl is copied there and stays in the folder too.
- A desktop shortcut into a folder moves it into that folder, where everyone who can open the folder (and see its target) will see it.
- Files from your computer dropped on a folder window upload into it.
If some of what you dragged cannot go where you dropped it, the rest still goes and you are told which ones failed and why.
Files records every action, and nothing is collapsed - every view is its own record:
- opening a folder, looking at a file's or folder's Properties, and every search with what was searched for;
- viewing a file (which version, whether it was watermarked, and whether the person could download), and opening anything inside a zip;
- downloading (which version - a resumed download counts once);
- uploading and new versions (with the size and SHA-256);
- creating, renaming, moving and copying folders and files, and deleting them;
- shortcuts being created, moved, copied, renamed and deleted;
- permission changes (each person or team added, changed or removed), inheritance changes and watermark changes;
- taking ownership, and changes to the Storage settings;
- every refusal - someone trying to do something their level does not allow.
Each record keeps the person's name, the path of the file or folder, the time, their IP address and their browser, as they were at the time - so the trail still reads correctly after a file is renamed or deleted, or a person leaves.
Note
There is no screen for reading the trail yet. An Audit app on the desktop is planned; until then the records are in the files_audit table in the database.
Because nothing is visible by default, a folder can end up with nobody able to open it - the only person with Full control left the organisation, for example.
Files -> Settings -> Folders lists every folder that exists, including the ones you cannot open. You see names, paths and counts there, never files. A folder with no entries of its own and nothing to inherit (a top-level folder, or one that stopped inheriting) is marked nobody has access. Take ownership gives you Full control of a folder after you confirm; you can then open it and share it again.
Taking ownership is a permission of its own (the Folders tab of Files in System -> Roles - the same one that lets someone create top-level folders), and every use of it is recorded in the audit trail with your name.
A file in Files can be attached to a ticket's note - From Files in the Add note window, attached when the note is saved - or to a task, asset, project or any record with Documents, by typing its name in attach a document already in FreeITSM (it appears under In Files). A link keeps Files in charge - opening it goes through Files (and files/?item= opens that file in the viewer), so its folder's permissions, View only and the watermark still apply; people who cannot open the folder do not even see its name. A copy is shared with everyone who can see the record. Files -> Settings -> Sharing decides which are offered. See Attached documents ยง From Files.
Save to Files copies a file into a folder in Files: on a ticket's email attachments (in the attachment list - not inline images), on files attached to a ticket's notes, and on any stored document in a Documents panel. Pick a folder you can upload to - type to narrow the list - and, when saving from a ticket, tick In a folder for this ticket to put it in a folder named after the ticket ("ABC-123 - Printer jammed"), made the first time and reused after. A file of the same name there gets the same choices as an upload. The original stays where it was. Files -> Settings -> Sharing can set the Suggested folder and whether A folder for each ticket starts ticked. How it works: Save to Files - Developer Guide.
Files -> Settings has six tabs, each its own permission in System -> Roles:
-
Folders - every folder, and Take ownership (above).
-
Storage - where files are kept - a folder on the server or S3-compatible storage - and the Largest upload.
-
Sharing (5.2.0) - how a file is attached to a ticket's note, a task or another record: a link that keeps Files' folder permissions (the default), a copy everyone on that record can read, or either, chosen each time. See Attaching to tasks and tickets. Also where Save to Files starts: a suggested folder, and whether to put a ticket's files in a folder for that ticket.
-
Versions (5.2.0) - which choices are offered when a file of the same name is uploaded (New version, Keep both, Overwrite, Skip - Overwrite is off until ticked), which one is highlighted, and how many versions each file keeps. Marked sensitive in Roles, because it can switch on Overwrite and delete old versions.
-
Recycle bin (5.4.0) - how many days deleted items are kept before the Files recycle bin background job deletes them for good (0 keeps them until someone does). Nothing is deleted automatically until this is saved, and anything already in the bin then gets the full period from that day. Changing the period later says first how many items it would delete. It also shows how much storage the bin is using.
The job never deletes a folder holding anything the person who deleted it could not have deleted themselves. Such a folder stays in the bin past its date, and administrators see it in System โ Maintenance โ Deleted folders kept, with why and what to do: restore it, give its deleter Modify on what is in the way, or have someone with Modify on all of it delete it permanently. The tab and the job's run say how many there are.
-
Thumbnails (5.10.0) - switch thumbnails on or off, and see how many are still to make: pictures, PDFs (split into those in folders you can upload to, and those waiting for someone with access) and those set aside. Clear makes them all, with a progress display: pictures by the server, PDFs by your browser - only in folders you can upload to. A PDF in a folder that was not shared with you is never opened; it waits for someone who can open it, as Files promises.
Files are stored as yyyy/mm/dd/<random>.bin, named by the day they were uploaded. The real names are only in the database, so nothing uploaded can ever be run by the web server, and the store is never served to a browser - every file goes through FreeITSM's own permission check.
Storage type (5.2.0) chooses where:
- Server folder - a folder on the FreeITSM server (the default, and what every install had before).
- S3-compatible storage - a bucket at AWS S3, Backblaze B2, Wasabi, Cloudflare R2, MinIO or any other provider that speaks the S3 API: Endpoint, Region, Bucket, Access key ID, Secret access key (stored encrypted, never shown again - leave it as it is to keep it), an optional Key prefix (a folder inside the bucket) and Use path-style addresses (MinIO and some others need it). Keep the bucket private: downloads still go through FreeITSM, which checks the folder's permissions first, and video can still be scrubbed. Test writes, reads and deletes a small file and names the step that failed; S3 settings are only saved once it works.
Changing the location moves the files already stored, in the background (the Files storage move job on Reporting โ System logs โ Background jobs):
- Each file is copied, checked against its size and the checksum recorded when it was uploaded, and checked again at the new place. Until then it is read from the old place, so nothing is ever unreadable.
- The tab shows the progress. Retry tries failed files again; Skip sets aside files whose old copy was already missing before the move, so they cannot hold it up for ever.
- When every file is copied, choose Remove to delete the old copies, or Finish to end the move and keep them. Before removing anything, FreeITSM checks again that the old and new locations really are different places, and that each new copy is there - if it cannot be sure, it removes nothing and tries again later.
If the storage cannot be reached, people see a clear "storage can't be reached" message within seconds rather than a long wait. Because S3 settings decide where every file is sent, give the Files โ Storage permission (System โ Roles, marked sensitive) only to people you would trust with every file. How it works: Files storage - Developer Guide.
- The default Storage folder is
uploads/files/inside FreeITSM. On Docker it is thefilesvolume, so it survives updates. Somewhere outside the web root is better still. - The tab shows where files are now, how many are stored, how much space they use and how much is free on that disk, and warns if the web server cannot write there.
- Changing the storage folder moves the files (above) - you no longer copy them by hand first. (Before 5.2.0 it moved nothing.)
When Files is kept in S3-compatible storage, a file or folder can also be kept as a copy on the FreeITSM server. Opening or downloading it then uses that copy first, so it opens faster - and it still opens while the storage provider cannot be reached. The copy in S3 stays the master. Think of the runbook, the network diagram or the disaster recovery plan: the things you need most on the day the storage is down.
Nothing changes for an install that keeps Files in a folder on the server - everything is local already, so the options are not shown.
Right-click a file or folder for:
| Option | What it does |
|---|---|
| Make available offline | Keeps a copy on the server. A file up to 64 MB is copied straight away; bigger files, and everything in a folder, are copied by the background job within a few minutes. |
| Remove offline copy | Stops keeping it offline. The copy is deleted unless something else still keeps it - a folder above it, or another file sharing the same stored bytes. |
| Don't keep offline | Leaves one file or subfolder out of a folder that is kept offline. |
| Keep offline again | Undoes Don't keep offline. |
With several items selected, the menu offers each option that fits at least one of them, and acts on those.
A folder covers everything in it - subfolders, and files added later. The nearest mark wins, the same way permissions inherit: a folder kept offline inside one that was left out is kept again. Only the current version of each file is kept, and files in the recycle bin are not (they are again if restored).
The ticks on the icons:
- Solid green - available offline.
- Hollow - still being copied. For a folder, something in it that you can see is still being copied.
- Amber - a copy failed (for example the file is missing from S3). It is tried again a day later.
- Grey - the state could not be read.
A folder's tick only reflects what you can see in it. Properties has an Offline row too.
Who can do it. Every option needs Modify on the folder (for a file, the folder it is in), or the Files โ Storage permission. Everything is recorded in the audit trail.
A mark covers only what the person who made it can open. The background job never copies anything that person could not have opened by hand: a subfolder closed to them is not copied. If they lose access to something, or their account is deactivated, their mark stops counting - a mark further up takes over, and anyone with Modify can mark it again as their own. The Storage tab says how many marks belong to people who are no longer active.
Files โ Settings โ Storage shows:
- how many copies there are and how much disk they use, and what is marked (folders, files, left out, and by how many people);
- a Limit for offline copies (no limit by default, or 10 GB up to 2 TB). Marking something that would go past it is refused, an upload past it keeps no copy, and the job stops copying at it and says so on this tab;
- Clear, which removes every mark for everyone - the job then deletes the copies;
- after the storage folder is changed, an old folder that could not be confirmed to be a different place, with Remove. Remove checks again first, and deletes nothing if the two turn out to be the same place.
The job also always leaves at least 1 GB of the disk free, so offline copies can never fill the disk that uploads need.
The background job is Files offline copies (files_offline_sync, Reporting โ System logs โ Background jobs). It runs every five minutes, and only while something is marked or copies are left to tidy. It copies what is missing, deletes copies nothing covers any more, and carries a very large file over several runs. Copies are checked against their size and SHA-256 before they are used, so a half-written copy is never served.
How it works: Files offline copies - Developer Guide. Contributed by @cloudcogsio (PR #488, review).
System -> Branding -> Files desktop decides, for everyone, whether the desktop shows a logo (Logo: the company logo of the person signed in, or No logo) and in which corner (Position: Top right or Bottom right).
The logo is the logo of the company the person is working in, set under System -> Companies - open an existing company and use Choose under Logo (PNG, JPG, GIF or WebP, up to 2 MB; it is saved straight away). A company without one shows the organisation logo from System -> Branding instead.
There is no desktop on a phone - windows and a taskbar are no way to manage files on a small screen. Files shows a plain list of the same folders instead: tap a folder to open it, the arrow to go back, and a file to open it full screen in the same viewer, with the same View only rules and watermark. You can upload and create folders from the phone wherever you have permission to.
Recent, Search, shortcuts on your desktop, permissions, renaming and deleting are on the desktop only. See Mobile: Files.
So nobody is surprised:
- Share links for people outside FreeITSM. Everything in Files is for signed-in analysts.
-
An Audit app for reading the trail. The records are kept from day one, in
files_audit. - Quotas. There is a largest upload, but no limit on how much a folder or a person can store.
- Searching inside files. Search looks at names only.
-
Translations. Files is translated into 22 languages besides English (
lang/*/files.php); a locale without the file shows English.
See also: Files - Developer Guide ยท Mobile: Files ยท Roles and Permissions ยท Module Access Control ยท Running on nginx