media.file.upload

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");
});

Usage

Triggers

Class or file Line
Backend\Traits\UploadableWidget 149
Copyright © 2024 Winter CMS