fix(client): report failed Book Dock uploads

The Book Dock discarded every upload failure, so a rejected file looked like nothing happened.
List failed files with a translated reason, offer retry where it can help, and stop a failed
token refresh, abort or timeout from stalling the upload queue. Dropped files of unsupported
types are reported instead of ignored.

Refs #1739
This commit is contained in:
neon
2026-10-13 00:24:07 +00:00
parent 9dbe2980dd
commit 070201e163
10 changed files with 989 additions and 65 deletions
+16
View File
@@ -7054,6 +7054,22 @@
"nFailed": "{count} failed",
"nTotal": "{count} total"
},
"uploadFailures": {
"heading": "{count, plural, one {Could not upload # file} other {Could not upload # files}}",
"dismissAll": "Dismiss all",
"retry": "Retry uploading {name}",
"dismiss": "Dismiss {name}",
"reason": {
"unsupported": "Unsupported file type: .{extension}",
"noExtension": "The file has no extension, so its format is unknown",
"tooLarge": "Larger than the {limit} upload limit",
"tooLargeServer": "Larger than the server upload limit",
"tooLargeProxy": "Rejected as too large before it reached BookOrbit, likely by a reverse proxy",
"storageFull": "The server is out of storage space",
"network": "Could not reach the server",
"status": "Upload failed (HTTP {status})"
}
},
"fileList": {
"emptyTitle": "No files in Book Dock",
"emptyMessageDefault": "Upload files or drop them in the Book Dock folder",