Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hh1966
chemotion_eln_server
Commits
e68b2244
Commit
e68b2244
authored
Apr 13, 2019
by
hh1966
Browse files
Fix string interpolation
parent
63a97c13
Pipeline
#45269
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/api/chemotion/collection_api.rb
View file @
e68b2244
...
...
@@ -401,7 +401,7 @@ module Chemotion
FileUtils
.
mkdir_p
(
import_path
)
unless
Dir
.
exist?
(
import_path
)
# store the file as `tmp/imports/<import_id>.zip`
zip_file_path
=
File
.
join
(
'tmp'
,
'import'
,
'
#{import_id}.zip
'
)
zip_file_path
=
File
.
join
(
'tmp'
,
'import'
,
"
#{
import_id
}
.zip
"
)
File
.
open
(
zip_file_path
,
'wb'
)
do
|
file
|
file
.
write
(
params
[
:file
][
:tempfile
].
read
)
end
...
...
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