[ENH] Add auto-delete feature for files based on days in Tiki File Galleries
For the task: https://avan.tech/item99418
- [ENH] Add auto-delete feature for files based on days in Tiki File Galleries
- Added
deletion_hours
column totiki_files
table to specify the number of hours after which a file should be deleted. - Implemented logic to check if the
deletion_hours
column exists before attempting to delete files. - Updated the PHP script to delete files after the specified time has passed.
- Added jQuery input validation to ensure only float numbers can be entered for the
deletion_hours
value. - This feature allows setting different deletion times for each file gallery, enhancing file management in Tiki.
Don't forget to update your database before trying (php console.php database:update)