Skip to content

A platform for community discussion. Free, open, simple.

FIX: Upload fails silently if it is bigger than max allowed size

Vinoth Kannan0a95d2a21f4f
diff --git a/app/assets/javascripts/discourse/lib/utilities.js.es6 b/app/assets/javascripts/discourse/lib/utilities.js.es6
index 1d24485e0fc..671e3ca7993 100644
--- a/app/assets/javascripts/discourse/lib/utilities.js.es6
+++ b/app/assets/javascripts/discourse/lib/utilities.js.es6
@@ -369,7 +369,7 @@ export function displayErrorForUpload(data) {
if (data.jqXHR.responseJSON.message) {
bootbox.alert(data.jqXHR.responseJSON.message);
} else {
- bootbox.alert(data.jqXHR.responseJSON.join("\n"));
+ bootbox.alert(data.jqXHR.responseJSON.errors.join("\n"));
}
return;
}