From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Uploadthing configuration

Uploadthing configuration

To handle file uploads, we're going to be using the UploadThing library, and it offers features like middleware support, file type validation, custom metadata, and it's a great choice for efficient file handling, and it's pretty easy to get set up. Also, the free tier is very generous, and the paid tier is only $10 a month, and they're not sponsoring or anything like that. It's just a solution that I think is really efficient and easy to use. So we're going to go to uploadthing.com, just go to sign in, and you can sign in with GitHub. And then you're going to want to create a new app and choose an app name, I'm going to call mine ProStor. And then the free tier, as you can see, 2 gigs of file storage, and that's shared across all free apps. And then the paid is $10 with 100 gigabytes file storage. And then, yeah, that's pretty much all we need to do, create app. And now we're going to go to API keys and we want to first of all get the token so I'm going to click copy here and then go…

Contents