Skip to content

Kirby 4.4.1

file.create:before

/site/config/config.php
return [
    'hooks' => [
        'file.create:before' => function (Kirby\Cms\File $file, Kirby\Filesystem\File $upload) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$file Kirby\Cms\File
$upload Kirby\Filesystem\File