What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

1

I ended up using an event to accomplish this: use yii\base\Event; use craft\elements\Asset; use craft\events\AssetEvent; Event::on(Asset::class, Asset::EVENT_BEFORE_HANDLE_FILE, function (AssetEvent $event) { $asset = $event->sender; // This does not work because it doesn't set the `uploaderId` property on the asset // $asset->setUploader(...


Top 50 recent answers are included