media.file.upload

Triggered in Backend\Widgets\MediaManager.

Called after a file is uploaded

Example usage:

Event::listen('media.file.upload', function((\Backend\Widgets\MediaManager) $mediaWidget, (string) $path, (\Symfony\Component\HttpFoundation\File\UploadedFile) $uploadedFile) {
    \Log::info($path . " was upoaded.");
});

Or

$mediaWidget->bindEvent('file.upload', function ((string) $path, (\Symfony\Component\HttpFoundation\File\UploadedFile) $uploadedFile) {
    \Log::info($path . " was uploaded");
});