Commit be9fc8eb authored by priit's avatar priit

Arhiivi lahtipakkija vigase väljundi parandus

parent 8be87288
......@@ -81,7 +81,8 @@ function ArchiveExtractor() {
logger.debug('Filepath: ' + filePath);
entry.pipe(fs.createWriteStream(filePath)).on('close', function() {
session.addOutputFile(uniqid, {
type: 'output',
key: 'output',
type: 'text',
filePath: filePath,
fileName: entry.path,
contentType: mime.lookup(fullpath) // getting the original file mime type
......@@ -124,7 +125,8 @@ function ArchiveExtractor() {
var filePath = files[i];
var fileName = files[i].substring(filePath.indexOf(session.id) + session.id.length + 1);
session.addOutputFile(uniqid, {
type: 'output',
key: 'output',
type: 'text',
filePath: filePath,
fileName: fileName,
contentType: mime.lookup(filePath) // getting the original file mime type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment