Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #32878

When an upload fails a toast is shown with either a specific message or
just the textual part of the HTTP error code (which comes from the
upload failure handler and set by "jQuery.ajax()". However, if there
is neither a message nor an error then the toast will show the default
message from the Toastify-js library, which is an undescriptive "Hi
there!".

When HTTP/2 is used Chromium does not provide the textual part of the
HTTP error code, so when an upload fails the toast can receive an empty
message and thus just show "Hi there!". Now an explicit message is
provided as a fallback to prevent that.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

This was referenced Jun 17, 2022
@blizzz blizzz added the 4. to release Ready to be released and/or waiting for tests to finish label Jun 17, 2022
@blizzz blizzz merged commit e850afb into stable24 Jun 21, 2022
@blizzz blizzz deleted the backport/32878/stable24 branch June 21, 2022 16:53
@skjnldsv skjnldsv mentioned this pull request Jul 5, 2022
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants