How to upload files from server side?
I am using nextjs 13.
Lets take this example:
User upload a video -> video uploaded to UT -> i download back the video on server to modify it (with ffmpeg for example)
-> need to upload the new video to UT from server.
How can i do the last step and upload my file from server using UT? The doc just say that we can GET and POST the "api/uploadthing" but its not clear how to pass a file and the wanted endpoint like this.
From client-side it's pretty well explained.
0 Replies