diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-28 12:00:02 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-28 12:00:02 +0100 |
| commit | 6c7454eb49aef9e7393a766a69cbae6eda0cbfd9 (patch) | |
| tree | a1a3bd9c9517e21df4a4b9cde9cf5da3e16794cb | |
| parent | c73f4f17b9d02e952110ee8d9849b6e2293569d7 (diff) | |
Fix web interface
| -rw-r--r-- | lib/web.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } }; |
