problem uploading files form server action
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:
that code keeps crushing, since File is not defined in Node
What's the proper way to use newly created image (saved on server file or Buffer) and invoke on server action:
await utapi.uploadFiles(...);
to send files to uploadThing
please help
regards
Piotr0 Replies