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
video preview

Hey friend, Many of you told me that you don't have time to go through the Next.js Hot Tips course that teaches you the best practices of building Next.js apps, which is why I've compiled this cheat sheet to give you. Grab the free Cheatsheet 🎁 As a special bonus, you can grab the cheatsheet for free here ↗️. It would not be fair if I don't share this deal I'm running on my site. The Modern Full Stack Next.js Course is having a Black Friday sale 🎈 (along with Purchase Power Parity Pricing)...

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,...

Hello Reader, So, React got really confusing... πŸ˜… Remember when things were way simpler before these Meta frameworks came along. Even the React docs recommend to use a Meta framework and Next.js was the recommended one for the longest time. Now, Next.js has not just one but *TWO* Routers. Not to mention the overwhelming number of updates between Next.js versions as well as breaking changes to keep up with. I don't blame you if you are frustrated. After 15+ years of building and scaling apps...