Api Route or Server Action for ImageKit upload
I am currently trying to make a form and on submit want to upload an image to Imagekit. Currently I am trying to do it with a server action, but am not sure if I should use a api route instead. That is because of the following error:
My code looks like this:
My server action
Thank You
0 Replies