正在加载视频...

视频加载失败

Upload a file with server action in Next.js

83,919 次观看 • 2 年前 •via X (Twitter)

8 条评论

Krishna Singh 的头像
Krishna Singh2 年前

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

Alex Sidorenko 的头像
Alex Sidorenko2 年前

@singhks0054 Sure, why not

Ram 的头像
Ram2 年前

Super simple !! thanks for sharing.

AMMARI Abdelmounaim 的头像
AMMARI Abdelmounaim2 年前

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

Arnab Chatterjee 的头像
Arnab Chatterjee2 年前

I have implemented here

Pablo Lizardo 的头像
Pablo Lizardo2 年前

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

SH 的头像
SH2 年前

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

Em Ha Tuan 的头像
Em Ha Tuan2 年前

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

相关视频