Reference

Guide

file.create:after

$file

Example

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