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
S3 Storage plugin ignores Payload-wide upload limits when using client-side uploads #12671
When enabling client-side uploads using the s3Storage plugin, the global Payload upload options (such as abortOnLimit and limits.fileSize) are not respected. This leads to scenarios where users can upload files exceeding the defined size limits without triggering any validation or error.
This behavior differs from server-side uploads, where the global upload configuration is correctly applied.
The issue still occurs in version 3.51.0. I tried using a beforeOperation hook to force validation, but the upload seems to happen beforehand in all cases. Even when triggering an error in the UI, which prevents the entity from being created in the database, the file is still uploaded to S3. This is likely the same behavior affecting another user in this issue: #13299
Activity
timothylp commentedon Jul 11, 2025
Any updates on this? The issue is still present in version
3.46.0, preventing us from exceeding the2MBlimit on Vercel.timothylp commentedon Aug 15, 2025
The issue still occurs in version 3.51.0. I tried using a
beforeOperationhook to force validation, but the upload seems to happen beforehand in all cases. Even when triggering an error in the UI, which prevents the entity from being created in the database, the file is still uploaded to S3. This is likely the same behavior affecting another user in this issue: #13299fix(storage-s3): respect upload limits with client uploads (#15176)
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.