Non-helpful flash message when attaching file fails
Summary
When attaching a file to a comment fails, a flash message is shown which doesn't help the user but looks only cryptic. Also the style of the flash message doesn't match other flash messages (see also #19160 (closed)).
Steps to reproduce
- navigate to page with comment form, e.g. any Issue
- turn off network connection
- click
Attach a file
link and select any file - receive bacon
Screenshot
Expected behavior
Use something like Attaching the file failed. Server responded with error code 0
.
Actually, even that is not ideal because in case of missing network connection, the server doesn't respond at all (hence the error code 0).
Additionally, this flash message could be moved above the text area as in !4854 (merged).
~bug