In my Pimcore backend I have '/incoming' Asset folder. If user uploads manually Image to that folder (only that) then I should relocate it to other folder.
I created a listener for AssetEvents::PRE_ADD and successgully get $event->getAsset() with empty path $event->getAsset()->getPath() == null -- it is ok since Asset is not saved yet.
BUT
I expected the target destination path to be somewhere in $event, e.g. in $event->getArguments() so I can check if Asset was requested to be uploaded to '/incoming' and I should relocate it.
What from can I get future requested location of Asset in pimcore.asset.preAdd event?
Currently I implemented it as processing in pimcore.asset.postAdd and saving once more. Can it be optimised to do once?