UncleCheese\Dropzone\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
- private static string $segment = 'dropzone-clean';
- 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
- SilverStripe\Dev\BuildTask
Members
private
- $segment
protected
- $description
- $title