media.file.upload

Triggered in Media\Widgets\MediaManager.

Called after a file is uploaded

Example usage:

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

Or

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