It may be a stupid question, don't kill me, I really tried to read documentation carefully ...
Since I do some image processing at first (image is passed to backend via base64 , proccessing is done with sharp in server action), my code look like this: