Skip to content

Improve feedback to user after a failed file upload - #12100

Merged
antobinary merged 3 commits into
bigbluebutton:developfrom
jfsiebel:better-upload-feedback
Apr 29, 2021
Merged

antobinary merged 3 commits into
bigbluebutton:developfrom
jfsiebel:better-upload-feedback

Conversation

@jfsiebel

@jfsiebel jfsiebel commented Apr 20, 2021 •

Copy link
Copy Markdown
Contributor

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:

image
image

After

image
image

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@jfsiebel
jfsiebel marked this pull request as ready for review April 27, 2021 20:47

@daminebenq daminebenq left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described and expected.

@antobinary
antobinary merged commit 60778bf into bigbluebutton:develop 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants