⟵ hearthere ⟶
  • Quick start
  • Install MIT
  • Install PRO
  • Updating
  • Optimization
  • Update v4-v6
  • Backups
  • Console utility bin/totum
  • Basics for users
  • Interface and Layout
  • Tables and their parameters
  • Prefilter
  • Fields and their parameters
  • Syntax
  • Code, actions, formatting
  • Relational relationships
  • Calculation order and calculation units
  • Auto-complete calculations and timing
  • Duplicate rows and cycles
  • Comparisons
  • Functions
  • Debugging
  • Print and CSV
  • API
  • Roles and users
  • Notifications
  • Scheduled Actions
  • System tables
  • Trees
  • Anonymous tables
  • External Forms
  • Exporting and importing tables
  • [PRO] MeiliSearch
  • [PRO] Databases
  • [PRO] Custom CSS
  • [PRO] Custom docs
  • [PRO] LDAP AD
  • [PRO] File versions
  • Enabling
  • New Version Timer
  • Access Rights
  • Storing Large Volumes of Files on the Server
  • [PRO] List-unsubscribe
  • [PRO] Dynamic fields
  • [PRO] Only Office
  • [PRO] Auth Tokens
  • [PRO] 2FA
  • [PRO] Superlang
  • [PRO] Daemons
  • [PRO] Profiler
  • Connecting functions
  • [SRV] Installation and Connection
  • [SRV] Export, PDF, Upload, and Preview
  • [SRV] XLSX/DOCX Generators
  • PRO Versions for Files

    For Protected File Access, you can enable file versioning mode. In this case, for each file, the user will have the option to create a new version or replace the existing file. You can also restrict the ability to replace a file based on the time elapsed since it was added.

    Enabling

    To enable versioning mode, turn on File Versions. This can only be done once — this mode cannot be disabled for the field.

    After this, to add a new version, you need to click + — the user will be shown a window to upload the new version and add a comment for it.

    New Version Timer

    If a time (in minutes) is set in the field Version Overwrite Timer, then when uploading a file within this time after the previous file was uploaded, the user will be asked whether they want to create a new version or update the previous one. If the time is exceeded, only a new version can be created.

    If you always need to create a new version, set the Version Overwrite Timer to 0.

    The comment for the version can also be edited according to the Version Overwrite Timer setting — if disabled, the comment for the latest version can be changed without restrictions. Only the user who added the latest version can change the comment.

    Access Rights

    Versions can be viewed by clicking on Versions.

    For the user to see this button, their role must have read access to the system table ttm__file_versions.

    It is also recommended to set this table to Hide in Tree in the roles table. For new roles, these permissions are added automatically.

    If you remove them for all user roles, the user will only see the latest version of the file.

    If roles are set in Deletion Available for Roles, the red cross for deleting the entire file with all versions will only be available to users with these roles. Other users will only be able to delete the latest version, and only if it was added by their user.

    If the parameter Version Overwrite Timer and Deletion Available for Roles are set, then for a role without deletion permission, deleting the latest version will only be available within the timer limits!

    Storing Large Volumes of Files on the Server

    You can combine file versions with the parameters Set Subfolder for Files and Divide into Subfolder Every N id (the latter only for the string part) to separate these folders onto additional connected disks when the main hard drive fills up.

    This way, you can store any volume of data.