\FileAttachmentFieldCleanTask
Delete all files being tracked that weren't saved against anything.
WARNING: You must call Form::saveInto or 'FileAttachmentFieldTrack::untrack' against IDs on custom-built forms or you
-will- remove files accidentally with this task.
Synopsis
class FileAttachmentFieldCleanTask
extends BuildTask
{
- // members
- protected string $title = 'File Attachment Field - Clear all tracked files that are older than 1 hour';
- protected string $description = 'Delete files uploaded via FileAttachmentField that aren\'t attached to anything.';
- // methods
- public void run()
Hierarchy
Extends
- BuildTask
Members
protected
- $description
- $title