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-appyarn create next-app --example server-actions-upload server-actions-upload-apppnpm create next-app --example server-actions-upload server-actions-upload-appDeploy it to the cloud with Vercel (Documentation).