Loading video...

Video Failed to Load

Go Home

Upload a file with server action in Next.js

83,954 views • 2 years ago •via X (Twitter)

8 Comments

Krishna Singh's profile picture
Krishna Singh2 years ago

Will the server actions form work well with a complex form that has #Zod validations?

Alex Sidorenko's profile picture
Alex Sidorenko2 years ago

@singhks0054 Sure, why not

Ram's profile picture
Ram2 years ago

Super simple !! thanks for sharing.

AMMARI Abdelmounaim's profile picture
AMMARI Abdelmounaim2 years ago

What's the tailwindCSS extension's name !! It looks cool

Arnab Chatterjee's profile picture
Arnab Chatterjee2 years ago

I have implemented here

Pablo Lizardo's profile picture
Pablo Lizardo2 years ago

Can you transcript the commented line? Twitter video compression doesn’t let me read it 😅

SH's profile picture
SH2 years ago

make sure to increase the function timeout, otherwise the server action will timeout from the default 10s

Em Ha Tuan's profile picture
Em Ha Tuan2 years ago

That is a good example of server action. Otherwise, Vercel does not allow applications to write a file on their platforms. 😀

Related Videos