Different Plugins with same hook

if I have two plugins which are use the same hook like panel.file.upload.
How is Kirby dealing with this situation? In which sequence will the plugins run?


Do you run into any issues with this setup? Plugins are usually loaded in the order they appear in the file system so the hooks will probably run in the same order.

But you can test this by letting the hooks log something to file to verify.

yes I had. Now I rename my plugin so it is before the other one.
I wrote a plugin to change the aspectratio and max size if its not fit and fill the background with a color.
And I have also a plugin which copy uploaded images also as webp.
My problem was that the webp was saved but my plugin was ignored.