Documentation

File lifespan limits

Disk module version 20.0.200 provides option to limit file lifespan inside recycle bin as well as lifespan for file versions that aren't attached to entities File is limited if:
- When inserting a link to file via Feed message, comment and etc.
- When file is uploaded to a Disk section and isn't attached to an entity.
.


This can be done via setting the option inside the method set:

  • by assigning number of days for a period when file versions will be available (-1 – unlimited, 0 – do not store):
    \Bitrix\Main\Config\Option::set('disk', 'disk_file_history_ttl', $dayLimit);
    
  • in the similar manner, set limits for file storage inside recycle bin:
    \Bitrix\Main\Config\Option::set('disk', 'disk_trashcan_ttl', $dayLimit);
    


© «Bitrix24», 2001-2024
Up