shadcn's form with uploadthing sdk

I am trying to upload an image to UploadThing through the SDK inside a server action. But I'm not sure how to fulfill the uploadFiles parameters because I'm not receiving a FormData from the form.

My idea was to parse the image to base64 before sending to the server and then uploading it (that's what I usually do in my local projects) but I actually don't know how to pass base64 to be uploaded.
Was this page helpful?