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 - Next.js Tutorial
From the course: Next.js Ecommerce: Build a Shopping Platform from Scratch
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Section intro1m 11s
-
(Locked)
Get products for admin page8m 24s
-
(Locked)
Display products7m 55s
-
(Locked)
Delete products4m 16s
-
(Locked)
Create and update actions8m 30s
-
(Locked)
Create product page and form9m 35s
-
(Locked)
Form fields and slugify13m 27s
-
(Locked)
Create product form submission6m 23s
-
(Locked)
Uploadthing configuration8m 9s
-
(Locked)
Add image upload12m 56s
-
(Locked)
Product cleanup7m 57s
-
(Locked)
Is featured banner8m 55s
-
(Locked)
Product update form9m 57s
-
(Locked)
-
-
-
-
-
-