File & Image Uploads in Next.js 15 Are Easy Now

preview_player
Показать описание

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).

👉 Discord: all my courses have a private Discord

⏱️ Timestamps:
00:00 File / Image upload problems
02:43 input with type="file" + styling
06:12 Pinata setup
08:02 import server-only
09:10 isUploading state
09:43 Upload file from browser to API route
11:34 Upload file from API route to Pinata
13:30 Display image with Signed URL
17:01 CDN + Signed URL
18:01 Image optimization (size, webp)
20:47 srcSet
21:52 Custom loader (Pinata)

#webdevelopment #reactjs #nextjs

Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code.

This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561
Рекомендации по теме
Комментарии
Автор

Having had to do this manually many times (using e.g. Google Storage etc), I can confirm it is a massive headache, This looks SO much easier

siciliandefense
Автор

Very nice actually. i give it a try in my projects

williamsbolu
Автор

My guy drops a banger video and disappears for a month

Sahil.
Автор

what is the difference between between "user server" and import "server-only" package .Is "server-only" package give us extra security.Actually, Delba from Vercel team also used this "server-only" package in her examples and it is very new for me.

Tayyab-gp
Автор

how can i integrate MongoDB and Pinata ?

mustafaebid-ry
Автор

i'm using next 15, but does it matter that i rolled back to react 18?

nickwoodward
Автор

can you do a complete server action video with crud.

sidds
Автор

Can we use server actions instead of API routes for this?

evheniydan