Repository navigation
Improve feedback to user after a failed file upload - #12100
Merged
antobinary merged 3 commits intoApr 29, 2021
Merged
Conversation
|
This pull request has conflicts ☹ |
jfsiebel
marked this pull request as ready for review
April 27, 2021 20:47
daminebenq
approved these changes
Apr 29, 2021
daminebenq
left a comment
Contributor
There was a problem hiding this comment.
Works as described and expected.
antobinary
approved these changes
Apr 29, 2021
antobinary
added a commit
that referenced
this pull request
Nov 3, 2026
…he limits hint The uploader has not checked file sizes since #12100 (2021, first in 2.3), and the 4.0 media-sharing rewrite also lost the upload hint. That left fileUploadConstraintsHint and uploadPagesMax passed in and never read, and uploadSizeMax ignored for regular uploads. Without a client check the browser sends the file even though bbb-web has refused it from the request headers. On a 30 Mbit/s uplink a 31 MB file took 8 s to send before its 413 arrived. A 200 MB file never finished: the request did not return, and nginx logged a new POST with the same token every 30 s until the page was closed, using the presenter's uplink during the session. handleFiledrop now refuses a file over uploadSizeMax before requesting a token. The notification names the file and reuses the existing 413 text, and the other files of the same drop upload as usual. bbb-web stays the authority: a client limit above maxFileSizeUpload still ends in its refusal. fileUploadConstraintsHint shows the limits on the upload panel again, off by default as before. uploadPagesMax only feeds that hint, because the page count is not known until bbb-web has processed the file. A server that raised maxFileSizeUpload without raising uploadSizeMax now refuses files between the two in the client. The documentation already tells admins to raise both, and the settings.yml comment now says why. The breakout tests that need bbb-web's refusal raise uploadSizeMax, otherwise the client would stop the file first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 does this PR do?
Remove useless drag and drop config and give a better feedback to user after a failed file upload attempt.
Closes Issue(s)
closes #7202
closes #8271
closes #8273
closes #8416
closes #10872
closes #11830
More
Before:
After