This example shows how you can build upload forms with Next.js and Server Actions.
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example server-actions-upload server-actions-upload-app
yarn create next-app --example server-actions-upload server-actions-upload-app
pnpm create next-app --example server-actions-upload server-actions-upload-app
Deploy it to the cloud with Vercel (Documentation).