2e85806282
Add upload file example with Server Actions |
||
---|---|---|
.. | ||
app | ||
.gitignore | ||
next.config.js | ||
package.json | ||
README.md | ||
tsconfig.json |
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).