fix(ui): show correct error when bulk uploads exceed NGINX size limit #13725
+70
−41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
This PR fixes misleading success messaging in the Admin UI when bulk file uploads contain one or more files that exceed the
client_max_body_size
(70 MB) enforced by NGINX. Previously, the oversized file(s) would be rejected with HTTP 413 at the proxy layer, but the UI still displayed a success state for the whole batch. After refresh, the file was absent (correct server behavior), but the messaging was incorrect.Why?
Without this fix, Admin users receive false-positive success feedback, creating confusion and the impression that oversized files were uploaded when they were not. Accurate per-file error handling is critical for trust and usability in the media upload flow.
How?
Failed to upload 1 file.
,Successfully uploaded 4 files
).Before
After
Fixes #13650