diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js index 16823a36..02975e2b 100644 --- a/src/node/handler/ImportHandler.js +++ b/src/node/handler/ImportHandler.js @@ -205,11 +205,14 @@ exports.doImport = function(req, res, padId) break; } } - if (isAscii) { - callback(); - } else { + + if (!isAscii) { callback("uploadFailed"); + + return; } + + callback(); }); },