media.file.beforeUpload

Triggered in Media\Widgets\MediaManager.

Called before a file is uploaded

Example usage:

Event::listen('media.file.beforeUpload', function ((\Symfony\Component\HttpFoundation\File\UploadedFile) $uploadedFile) {
    \Log::info($path . " was uploaded.");
});

Or

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