From 6c7454eb49aef9e7393a766a69cbae6eda0cbfd9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Apr 2013 12:00:02 +0100 Subject: Fix web interface --- lib/web.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/web.js b/lib/web.js index 9d77707..c777360 100644 --- a/lib/web.js +++ b/lib/web.js @@ -55,15 +55,15 @@ function handleConvert(request, response, next) { var converter = new mammoth.Converter(mammoth.standardOptions); var uploadedDocument = request.files.document; - var documentPath = uploadedDocument.path + var documentPath = uploadedDocument.path; - converter.convertToHtml(documentPath) + converter.convertToHtml({path: documentPath}) .then(function(result) { request.template = { name: "convert.html", values: { documentName: uploadedDocument.name, - documentHtml: result.html, + documentHtml: result.value, messages: result.messages } }; -- cgit v1.2.3