fix: #13909, show 413 error properly

add tx string
This commit is contained in:
Barış Soner Uşaklı
2026-01-19 20:59:55 -05:00
parent 1cbc128a75
commit 39af838376
3 changed files with 3 additions and 2 deletions

View File

@@ -97,7 +97,7 @@
"multer": "2.0.2",
"nconf": "0.13.0",
"nodebb-plugin-2factor": "7.6.1",
"nodebb-plugin-composer-default": "10.3.1",
"nodebb-plugin-composer-default": "10.3.2",
"nodebb-plugin-dbsearch": "6.3.5",
"nodebb-plugin-emoji": "6.0.5",
"nodebb-plugin-emoji-android": "4.1.1",

View File

@@ -292,6 +292,7 @@
"api.401": "A valid login session was not found. Please log in and try again.",
"api.403": "You are not authorised to make this call",
"api.404": "Invalid API call",
"api.413": "The request payload is too large",
"api.426": "HTTPS is required for requests to the write api, please re-send your request via HTTPS",
"api.429": "You have made too many requests, please try again later",
"api.500": "An unexpected error was encountered while attempting to service your request.",

View File

@@ -181,7 +181,7 @@ define('uploadHelpers', ['alerts'], function (alerts) {
'[[error:parse-error]]';
if (xhr && xhr.status === 413) {
errorMsg = xhr.statusText || 'Request Entity Too Large';
errorMsg = '[[error:api.413]]';
}
alerts.error(errorMsg);
alerts.remove(alert_id);