Skip to content

Kirby 3.5.7.1

file.create:before

$file, $upload

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