Updating to FileRun 2026.4
What to do before and after updating an installation to FileRun 2026.4.0: the steps the update
cannot do by itself, and the changes that affect a customized configuration, customized files and
API clients.
Before updating
- Make a full backup of the installation.
- The user details mapping of the OpenID Connect and OAuth2 authentication. The JSONPath
selectors of the mapping are now read by the rules of the JSONPath standard (RFC 9535). The usual
forms give the same value as before, such as
$.email,$.name.given_name,$['custom:claim'],$.emails[0].valueand$.groups[*]. A selector written in one of the forms below has to be changed. The corrected forms work in the earlier versions too, so change them before updating.- A name in brackets needs quotes:
$[email]has to be$['email']. - A quoted name after a dot is refused:
$.'custom:claim'has to be$['custom:claim']. - A position after a dot finds nothing:
$.emails.0.valuehas to be$.emails[0].value. - A filter that compares with
=,===,!==,=~,inorninis refused. A filter compares with==,!=,<,<=,>and>=. The new functionsmatch()andsearch()check a regular expression. The earlier versions do not know them, so a filter that uses them works only after the update. .lengthand calculated positions such as[(@.length-1)]are no longer available. The last element is[-1].- A negative position that reaches before the start of a list, such as
[-5]on a list of two, finds nothing. It found the first element.
- A name in brackets needs quotes:
- Home folders inside the installation folder. FileRun no longer accepts a home folder inside the folder in which it is installed, or a folder that contains the installation folder. If the files of your users are kept inside the installation folder, move them outside and change the paths of the accounts. After the update, FileRun refuses to save such an account until its home folder is outside the installation folder, and the deletion of such an account leaves its home folder on the disk. A symbolic link inside the installation folder that leads to a folder outside it is still accepted. See Home folders.
After updating
Thumbnails and previews
FileRun no longer keeps the thumbnails and the document previews next to the files, in hidden
.filerun.thumbnails and .filerun.cache folders. It keeps them in the installation folder, in
system/data/temp/file_variants/Drive. The folders of the users hold only their files: a backup or
a synchronization tool no longer copies the cache, and opening a folder no longer writes into it.
The old folders stay where they are after the update, hidden. FileRun no longer reads them, so each thumbnail is made again the first time it is viewed. A command line tool moves what is still valid of the old folders to the new location, and removes the rest:
- From the root of the installation, run the tool with
--dry-run. It prints every file it would move and remove, and changes nothing.1php cli.php 'Drive/!cli/variants/migrate_legacy' --dry-run - Run it again without
--dry-run.1php cli.php 'Drive/!cli/variants/migrate_legacy' - At the end, it prints how many folders it read, how many thumbnails and previews it moved, how many files it removed, and how much space it moved and freed.
What the tool does:
- Without options, it processes the home folder of every account, the trash folder set by
$config['path']['trash'], and the folders set by$config['path']['thumbnail_cache']and$config['path']['preview_cache'], if any. For a folder outside the home folders, run it with--path=/full/disk/path. The other options are on Command line tools. - It moves the thumbnails and the previews of the files that have not changed since they were made. It removes the cache of the files that no longer exist, of the files that changed, and of the earlier versions of files. When a thumbnail was already made again after the update, it keeps the new one.
- On a large installation it can run for a long time. A run that stops can be started again: it
continues with what is left. It can also be run one account at a time with
--username, or one folder at a time with--path.
Remarks:
- The cache now takes room on the disk of the installation folder. On a large photo library it can
take many gigabytes. To keep it on another disk, set
$config['Drive']['path']['file_variants']incustomizables/config.phpbefore running the tool. See Advanced configuration. $config['path']['thumbnail_cache']and$config['path']['preview_cache']are no longer read. If you set one of them, remove it fromcustomizables/config.phpafter the tool has run.- With several web servers behind a load balancer, each server keeps its own thumbnails, unless
$config['Drive']['path']['file_variants']points to storage that they share. - After restoring the database from a backup, delete the folder
system/data/temp/file_variants, or the folder that the option names. The thumbnails are found through the database records of the files, and a restored database can give the record of one file to another file, which would then show the wrong thumbnail.
Configuration
-
The names of the activity log actions. An action is now named together with its application, such as
Core.loginorDrive.upload. The update renames the entries of the activity log, of its archive and of the e-mail notification rules. Wherecustomizables/config.phpnames actions, change the names by hand. The names are listed on Activity log actions. The option that names actions this way is$config['system']['custom_event_scripts']. -
The options of the e-mail notifications about files moved. Move them in
customizables/config.php, because an option left at the old place is ignored:$config['app']['email_notification']['basic_actions']becomes$config['Drive']['email_notification']['basic_actions'].$config['app']['email_notification']['folder_based']['limit_actions']becomes$config['Drive']['email_notification']['folder_based']['limit_actions'].
Their values stay the same: the names of the actions without the application, such as
receive_upload. -
Your own list of notified actions. If
$config['Drive']['email_notification']['basic_actions']is set, replacereceive_copyandreceive_movethere withreceive_file_copy_created: the two old names are never recorded, so a copy into a user's folder was never notified. The default list now also notifies about a file uploaded over an existing file or saved from an editor (receive_file_updated). Add it to your list if you want the same. -
$config['system']['http']['options']. The library that makes the outgoing HTTP requests (Guzzle) is at version 8. It checks the types of these options, and refuses cURL options that replace its own settings, such as the certificate check, the proxy or the timeout. HTTPS connections need TLS 1.2 or newer, a connection attempt waits at most 60 seconds, and only the redirects with the status 301, 302, 303, 307 or 308 are followed. -
E-mail sent through PHP's
mail()function (no SMTP server set in the control panel). The e-mail library (PHPMailer) is at version 7. When the PHP settingsendmail_pathalready names an envelope sender with-f, that sender is now used. -
$config['app']['admin']['users']['manage']['each_other']is removed. A regular administrator can no longer manage the user account of another regular administrator, whatever the configuration says. Remove the option fromcustomizables/config.php. The superuser manages the accounts of the administrators. -
$config['app']['weblinks']['defaults']['expiry'], the default expiration date of the web links, must be a date, such as2026-11-22. A value that is not a date stops the creation of every web link with an error. The link now expires at the end of that day, not at its start.
Customized files
- Translations. If you keep translation files under
customizables/translations, the files inside aCoreor aDrivefolder of a language are no longer read. Move them one level up: for example,customizables/translations/german/Core/Basic.phpbecomescustomizables/translations/german/Basic.php. One file gets a new name instead:Drive/Notifications.phpbecomesNotifications/Triggers.php. See Translating FileRun. - Event scripts. The event scripts in
customizables/eventsare named after the new action names:Core.login.php,Drive.upload.phpand so on. Rename them. The catch-all event script receives the new name in$action. - E-mail templates. Copies of the e-mail templates under
customizables/emailsare no longer read, whatever their language: the messages go out with the built-in templates. The messages are now translated, and written in the language of each user account, so a copy kept only to translate a message is no longer needed. To change the text of a message, override its translation undercustomizables/translations, in the section of the message: for example,customizables/translations/english/Email/Signup.phpfor the e-mail with the sign-in details. See E-mail notification system.
Permissions
- The permission "User can make changes to files and folders" is split into eight separate permissions. The update gives all eight to every account and role that had the one, so nothing changes until an administrator edits them. Review the accounts and the roles that should have less.
- The Guest role can now be allowed to edit files, use collections and star files. These options are off after the update, so guests behave as before until an administrator enables them.
- Some permissions mean nothing without another one, such as sharing without downloading. They are now switched off when an account or a role is saved, and the update switches them off once in the stored accounts and roles. What the users can do stays the same, but the forms of the control panel and the API now show these permissions as off.
- Simple administrators can be allowed to administer the shared drives. The permission is off after the update. The superuser and the independent administrators can always administer them.
- In the control panel, the lists for picking users and groups (the members of a group, the
notification rules, the user and role forms) are no longer limited by the
Can interact withpermission of the administrator who is signed in. An independent administrator still sees only the accounts it created.
Guest sign-in links
The link that signs a guest in, sent in the share messages and shown when editing a guest account, has a new address. The links in the messages sent before the update no longer work. Send such a guest a new share message, or let them sign in with their username and password.
Sign-up and sign-in
- Accounts waiting for their activation link. The sign-up no longer sends an activation link: the visitor confirms the e-mail address with a code before the account is created. An account that still waits for the activation link sent by an earlier version has to be activated by an administrator, in its user window. See Deactivating a user account.
- The role of the sign-up. When the role that the "Sign up" settings give to the new accounts no longer exists, the sign-in page does not offer the sign-up. This can happen when the role was deleted, or after an import of the settings. Save the "Sign up" settings with a role to offer the sign-up again.
User accounts
- Two-step verification asked of single accounts. While the security setting "Require two-factor authentication" was on, the earlier versions also turned on the option "Require user to use two-step verification" of every account created or saved. These accounts keep the option after the update, so they still need a second factor when the setting is off. Clear the checkbox of the accounts that should not need one.
- Guest accounts without an e-mail address. A guest account needs an e-mail address. The update does not change the guest accounts that have none, but an administrator has to give such an account an address the next time they save it.
- Roles of a deleted independent administrator. A role created by an independent administrator who was deleted keeps the home folders of its accounts, and cannot be given to a new account. The role window shows a warning. To make it an ordinary role, the superuser saves it with a new full path, and the accounts of the role then move to that path.
Photos in the HEIC and HEIF formats
The HEIC and HEIF pictures, such as the photos of an iPhone, get the metadata file type "Photos" when they are uploaded, so they are listed in the Photos library. A picture uploaded before the update gets the type when an administrator indexes the metadata of its folder ("Index file metadata", in the control panel of the folder), if the picture has no metadata yet, such as tags or comments. Their Exif information is read only when ImageMagick is enabled with the mode "IMagick PHP Extension", and can read HEIC.
Command line scripts
- A script that fails ends with the exit status 1, where it ended with 0. A scheduler or a shell script that runs the scripts of FileRun can now detect the failures. This includes a script that refuses the value of an option, for example with "Username not found".
- An option that takes a value, written last without its value, stops the script with an error such
as "The option --username requires a value!". It was ignored before: for example,
cron/empty_trash.php --days 30 --usernameemptied the trash of every user. Check the commands of your scheduled tasks.
Files to remove by hand
- On Linux installations whose trash folder is on another file system than the user files, an earlier version could leave files in the trash folder that have no record and are not shown in the trash. Remove them from the trash folder by hand.
API clients
Every endpoint added and changed is listed on API changes in 2026.4.
- A write that the quota refuses is answered with the status
507 Insufficient Storageinstead of403, on every endpoint. The message in the answer is the same. - The errors of the OAuth2 token endpoint no longer have the
messagefield. Readerror_descriptioninstead. - A refresh token that is expired, revoked or issued to another application is answered with the
invalid_granterror and the status400, where it wasinvalid_requestand401. An expired or revoked authorization code is answered withinvalid_granttoo. A password grant with an emptyusernameis refused withinvalid_request. Core/!admin/users/inforeturnslast_web_ui_accessinstead oflast_access_date, with the same value. It also returnslast_seen, the time of the last activity of any kind.- The home folder path template of a role is named
drive_homefolder_templatebyCore/!admin/roles/info,Core/!admin/roles/addandCore/!admin/roles/edit. The old name,homefolder, still works, and will be removed in a future version. - In the answer of
Core/!admin/users/edit_groups,add_to_grouplists only the groups joined by the request, and the newremove_from_grouplists the groups left. Core/users/searchis for administrators only, and needs theadminscope. Any other account finds the people it can share with through the new endpointDrive/users/search, which needs thesharescope. It takes the samesearchparameter and answers in the same form. It lists only the accounts that the "Can interact with" permission of the account allows, and an account created by an independent administrator finds only the accounts of that administrator, whatever the permission names.- The new endpoint
Drive/files/copycopies a file or a folder. A name already taken at the destination is refused, unlessoverwriteis set. See Copying files or folders. Drive/files/movetakes theoverwriteparameter. Set to 1, a move onto an existing file replaces it, and a move onto an existing folder merges the two folders. A move refused because the name is taken carriesconflicts, the item in the way. See Moving files or folders.Drive/files/extractandDrive/files/zipno longer require the permission to make changes. Being allowed to download the source and to upload into the target folder is enough to write new files. Extracting over a file that already exists requires that the account is allowed to delete that file and to upload into its folder, so an account with theeditorshare role on a folder, without the permission to delete, can no longer extract over existing files. Adding to an existing zip archive requires the permission to edit files.- The user and role endpoints take and hand out the eight permissions that replace
changes:edit_files,rename_move,delete_files,delete_folders,delete_permanently,collections,starringandwrite_metadata. Each file endpoint asks for the permission of its action:rename_moveto rename and move,delete_filesanddelete_foldersto delete anddelete_filesto open the trash and restore from it,delete_permanentlyto delete for good and to empty the trash,starringto star, andwrite_metadatato change tags and other metadata. See Add FileRun user accounts. changesis still accepted. It setsrename_move,delete_files,delete_foldersanddelete_permanently, except the ones the request sends itself. The user endpoints store a permission left out as off, so an account edited with onlychangeslosesedit_files,collections,starringandwrite_metadata.Core/!admin/roles/infostill hands outchangesandreadonly, andCore/account/infostill hands outreadOnly, worked out fromrename_move,delete_filesanddelete_folders.Core/!admin/users/infono longer hands outreadonly.Drive/files/lockandDrive/files/unlockrequire one of the permissions to edit files, to rename and move them, or to delete them. See Locking files.Drive/files/trash/emptytakes an optionalpath, the trash of a shared drive to empty. See Managing the trash.- The new endpoints under
Drive/!admin/shared_drivescreate and manage the shared drives and their members, and the new permissionadmin_shared_driveslets a simple administrator use them. See Managing shared drives. - The PHP API client library (
apps/Drive/!classes/vendor/FileRun/API/Client) is no longer part of the installation package. Core/!admin/users/addandCore/!admin/users/editrefuse an e-mail address that another user account already has, with "The e-mail address is already used by another user account!". A client that gives the same address to several accounts has to be changed. The accounts that already share an address are not changed, and can still be saved.- A guest account needs an e-mail address: the user endpoints refuse to create a guest account without one, to give the Guest role to an account without one, and to remove the address of a guest.
Core/!admin/users/addrefuses an owner that is not an independent administrator, with "The owner of a user account has to be an independent administrator.".- The expiration date of a user account must have the form
YYYY-MM-DD. Another value is refused with "The date "..." is not valid.". Drive/files/searchrefuses a search in a location that has no search, such as a web link, "Starred", "Recent", the trash or a media section, with "It is not possible to search in this location!". It answered with every item of the location.- When the user clicks "Cancel" on the page that asks to authorize an application, the browser is
sent back to the redirect address of the application, with the error
access_deniedand thestatethat the application sent.
Settings that moved
- The settings of the programs that make thumbnails and previews (Vips, ImageMagick, FFmpeg and
LibreOffice) moved from
Files→Settings→Thumbs and previewstoFiles→Settings→Advanced. The file types that each program is used with stay onThumbs and previews. Files→Settings→Featureshas two new options underAccess:WebDAVandMobile and desktop apps. Both are on after the update.