Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: show a generic error on upload for XHR status 0 #10521

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

riking
Copy link
Contributor

@riking riking commented Aug 25, 2020

This indication covers all cases of network errors, not just "cancelled by user".
The post upload component already has its own handling for user-cancelled uploads, but the generic upload component does not.

Because this error code frequently indicates the browser is refusing to tell the page what's wrong, suggest checking the developer console.

Tested by stopping my localhost server right before attempting to upload a file (browser's net::ERR_CONNECTION_REFUSED).

@riking riking requested a review from eviltrout August 25, 2020 00:19
@riking
Copy link
Contributor Author

riking commented Aug 25, 2020

image

Could use suggestions on copy, if anyone has them.

config/locales/client.en.yml Outdated Show resolved Hide resolved
This indication covers all cases of network errors, not just "cancelled by user".
The post upload component already has its own handling for user-cancelled uploads, but the generic upload component does not.

Tested by stopping my localhost server right before attempting to upload a file.
@riking riking added the 👍 OP to merge PR author can go ahead and merge! label Aug 25, 2020
@riking riking merged commit 93e136a into discourse:master Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👍 OP to merge PR author can go ahead and merge!
Development

Successfully merging this pull request may close these issues.

2 participants