This Next.js App Router example uses a Form to send data via the Fetch APIto a Serverless Function.
Note: When deployed on Vercel, there's a 4.5 MB file upload limit.