Hello all,
I am hoping someone can help me…
When I upload a image, into a field on a page. It uploads fine to the server into the private media folder.
But the image processing only happens when the image is loaded from kirby on the frontend or in the editor.
The problem I have is, I am using a headless plugin/frontend, so my kirby PHP front end never is used.
And I am accessing the image using $field->toFile(). So I can have the exact URL of the image to use.
But when I load the URL, the image file is not in the public folder.
So, how can I make the image process and put it into the public media folder after it gets uploaded?
You can use hooks to do this (Hooks | Kirby CMS).
Have a look at [V4] Generate thumbs on image upload