Next.js · Middle · Question 55 of 75
A form uploads a 5 MB file via a Server Action and fails. What's the likely cause?
- ✓Correct answer: Server Action request bodies are limited to 1 MB by default; raise
serverActions.bodySizeLimitor upload directly to storage - 2Server Actions can't accept
FormData - 3Files must be base64-encoded first
Explanation
The limit protects the server from large-payload attacks. For big files, a signed upload URL to object storage avoids sending the bytes through your server.