kuduz0vic
kuduz0vic
TTCTheo's Typesafe Cult
Created by kuduz0vic on 11/26/2023 in #questions
Python with Uploadthing?
Hey everyone, I recently started working on my own Next.js app, which I mixed together with Python. One of my main functionalities is transcribing videos, and since I'd like for people to upload mp4 files which I would later convert in the backend using python and upload only the audio/mp3 files since the video is not needed (plus it would save storage space). I'm using Kinde for authentication, and user id, as well as prisma and planet scale if that matters So I was wondering if theres a way I can upload the converted mp3 file directly to uploadthing using python? I already set up my script in next js that interrupts file upload if the file is a video, and then converts it in python server. Now I'm just now sure how to send it to uploadthing, or at least back to next js and then upload it from there. I know the issue is quite complex, but any help would be highly appreciated! Thanks a lot in advance.
2 replies