From fb18e071e508fd5d569ed63d29bc79211605007b Mon Sep 17 00:00:00 2001 From: Christian Moelders Date: Mon, 17 Dec 2018 11:58:33 +0100 Subject: [PATCH] Closes: #2684 The successful upload of a text in the learning section is answered with HTTP status code 204, that is: The server has successfully processed the request and does not return any content. For this reason must be used. --- interface/js/app/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index f5a5cf73f..466d5d25e 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -52,7 +52,7 @@ define(["jquery"], headers: headers, success: function (json) { cleanTextUpload(source); - if (json[0].data.success) { + if (json[0].status === true) { rspamd.alertMessage("alert-success", "Data successfully uploaded"); } } -- 2.39.5