You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
s3Storage clientUploads still sends file binary to Server Action, causing 413 error #15073
When clientUploads: true is enabled in s3Storage plugin, the initial create request (Next.js Server Action) still includes the full file binary in the multipart form data. This causes a 413 Payload Too Large error due to Next.js's default 1MB limit for Server Actions, defeating the purpose of client-side uploads.
Apologies for linking a separate issue here, but they seem to share the same scope. I'm bringing this up again because it's a major blocker that makes clientUploads unusable for my use case.
It's very likely these two issues are interconnected or share a common root cause. I’d really appreciate it if someone could take a look, as my initial report has been stalled for a while now.
I traced this back to how the form is wired up with getFormState and its associated Server Action which is used for validation, rendering and permissions.
Because Server Actions are subject to Next.js’ request body size limits (~1 MB by default), this results in a 413 Payload Too Large error for larger files, despite client uploads being enabled.
I’ve prepared a fix that adjusts this flow so the file binary is not passed through the getFormState Server Action.
Activity
timothylp commentedon Jan 2, 2026
Apologies for linking a separate issue here, but they seem to share the same scope. I'm bringing this up again because it's a major blocker that makes
clientUploadsunusable for my use case.It's very likely these two issues are interconnected or share a common root cause. I’d really appreciate it if someone could take a look, as my initial report has been stalled for a while now.
Related issue: #12671
sohamingle commentedon Jan 3, 2026
I traced this back to how the form is wired up with
getFormStateand its associated Server Action which is used for validation, rendering and permissions.Because Server Actions are subject to Next.js’ request body size limits (~1 MB by default), this results in a 413 Payload Too Large error for larger files, despite client uploads being enabled.
I’ve prepared a fix that adjusts this flow so the file binary is not passed through the
getFormStateServer Action.rilrom commentedon Jan 12, 2026
I'm able to reproduce this in my image search plugin, which doesn't use any adapter.
Looks like the PR to resolve this is already aware of this, but flagging it here nonetheless.
fix: exclude files from being sent to the form-state action (#15174)
github-actions commentedon Jan 13, 2026
🚀 This is included in version v3.71.0
github-actions commentedon Jan 21, 2026
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.