From Dev.to
Next.js Receipt Storage: Auditable Private Browser File Uploads
Short answer: treat the Next.js server action as a short-lived authorization decision, not as the file pipe. Let the browser upload the receipt directly to private object storage, then make a separate...
