2e85806282
Add upload file example with Server Actions
1.1 KiB
1.1 KiB
Upload file with Next.js and Server Actions
This example shows how you can build upload forms with Next.js and Server Actions.
Deploy your own
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example server-actions-upload next-upload-app
yarn create next-app --example server-actions-upload next-upload-app
pnpm create next-app --example server-actions-upload next-upload-app
Deploy it to the cloud with Vercel (Documentation).