Simplifying Large File Uploads for AI Transcriptions


Hey friend,

I have been heads down creating a free AI SaaS tutorial which is going to be massive on my channel. This will teach you how to ship a AI SaaS. I can't wait to share more.

Based on popular demand, I'm running the Next.js Workshop ↗️ for the final time. I won't be running this workshop again.

It is a Live 1-day Next.js Workshop that teaches you the best practices to design, build and deploy full-stack production-ready apps.

⏰ When: September 3rd, 9am to 3pm EST
πŸ“ Where: Zoom

🎁 For a limited time only (Until September 1st), you get $100 off the workshop price (use code LASTNEXT).

Bonus: Plus you get access to me so ask away whatever questions you like and as a bonus, you get free access to my upcoming Next.js Course.

You can see it for yourself πŸ”₯ (and there is more here ↗️)

​

🍿 Our Weekly Snack

AI Transcriptions for big Video Uploads

Let’s say you want to turn a video file into an AI-transcribed blog post (and yes, I’ve got a full video breakdown coming soon on my Youtube channel ↗️).

You can use OpenAI, you'll need to tap into their Whisper API for transcriptions.

Sounds easy enough, right? πŸ˜… Just set up a file uploader with something like <input type='file' /> and then send that file over to the right spot.

For example,

Well, not that simple ❌.

This approach works fine for small files, but when you’re dealing with larger ones, you hit a snagβ€” some platforms only allow uploads up to 4.5MB (hint: Vercel).

So, what’s the workaround? πŸ‘‡

You need to upload the file to a cloud storage service without processing it first. Once you have the cloud URL, you can then share it in the fileUrl section in the transcriptions method.

This is where UploadThing ↗️ comes to the rescue πŸ’–.

UploadThing securely handles file hosting and makes adding file uploads a breeze.

Why choose UploadThing? ☁️

A cloud platform like Vercel ↗️ limits request bodies to 4.5MB, which makes uploading large files a pain.

That’s where UploadThing shines.

Plus, the documentation is top-notchβ€” it’s built by Theo ↗️, so you know it’s solid. Honestly, it feels like the docs were written to perfectly match how your brain works.

You have full ownership with UploadThing still so remember, you'd still need to create a api route ↗️ to manage the file upload.

🀫 Latest Frontend News

Next.js Docs have been updated with so many different examples, here you go ↗️.

Next.js Conf is here so grab your tickets ↗️ as attending virtually is completely free.

Exciting ShadCN UI library updates are here, the Open in V0 button ↗️ takes your content to V0 AI for prompting so you can generate new UI using it.

​State of CSS Survey 2024 ↗️ has opened up so don't forget to share your thoughts.

A tiny library that makes date ranges short and sweet, check it out ↗️​

​OpenNext ↗️ takes the Next.js build output and converts it into packages that can be deployed across a variety of environments.

In a world full of boilerplates, here is another but this time with React + Vite ↗️ and it's free.
​

πŸ’– Weekly Youtube Videos

Check it out and subscribe to my channel ↗️ for more Frontend, Leadership and Career Development content.

Is Facebook StyleX a Tailwind killer? πŸ€”
​

video preview​

A New Way to Render Pages in Next.js | NeonDB, Server Actions

video preview​

What do you think of today's Newsletter? Simply click on one of the links below.

​πŸ”₯ 😐 πŸ‘Žβ€‹

Ankita Kulkarni

Join 6000+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!

Read more from Ankita Kulkarni
saying No

Hello Reader, As an Engineering leader, you are going to get requests all the time. So you need to prioritize how you are going to manage that. According to a study by McKinsey, leaders who set clear priorities for their teams see a 25% increase in overall productivity. You might have to say β€˜no’ to your direct team or product leaders or might have to say no to priorities. In Leadership, saying no means 'not right now', but let's work together to figure out 'when.' While setting priorities,...

Removing console logs

Hey friend, I've been heads down building this thing for months, and I'm both nervous and *stoked* to finally share it with you. It is The Modern Full Stack Next.js Course which is dropping on November 25th πŸ’₯. It is a course that teaches you to build and deploy production-ready Next.js apps. Less than 10 days to go, WILD !! 😬 Look, I know there are tons of courses out there, but I wanted to do something different. I actually built my own *custom course platform* from scratch because, well,...

Hey friend, AI has revolutionized how we should build products. Instead of being scared of it, I'd suggest trying out a bunch of tools and seeing what you like to make you more powerful, I mean productive :P. I mean, I built this Full Stack Splitwise app from scratch using just prompts and AI – no coding skills required! My Tech Stack - Next.js, ShadCN, Clerk, and all the bells and whistles. I'm blown away 🀯. I also gave AI my design vision and it designed this beautiful app for me! If you...