Assets triggers little improvement

Hello @artur

Is it possible to have a trigger after the asset was inserted in dataStorage ?

Actually in the ‘add’ function of module Assets the trigger ‘assets.add’ is trigged before the insert in datastorage

$this->app->trigger('assets.add', [&$assets]);
$this->app->dataStorage->insert('assets', $assets);

And if i want to make some modifications on the asset after the upload/add action it’s not possible.

Maybe for the trigger assets.asset.update is necessary too !?

Hey :wave: Please open a feature request here: Issues · Cockpit-HQ/Cockpit · GitHub

1 Like

Thanks @artur for the fast reply !
The request was post on github.
see you !