Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
be9fc8eb
Commit
be9fc8eb
authored
Nov 27, 2015
by
priit
Browse files
Arhiivi lahtipakkija vigase väljundi parandus
parent
8be87288
Changes
1
Hide whitespace changes
Inline
Side-by-side
wrapper/archiveExtractor.js
View file @
be9fc8eb
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment