# 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 [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/server-actions-upload&project-name=server-actions-upload&repository-name=server-actions-upload) ## How to use Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: ```bash npx create-next-app --example server-actions-upload next-upload-app ``` ```bash yarn create next-app --example server-actions-upload next-upload-app ``` ```bash pnpm create next-app --example server-actions-upload next-upload-app ``` Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).