Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
93d61151
Commit
93d61151
authored
Feb 10, 2016
by
Frédéric Escudié
Browse files
Fix python3 bug in upload with small file.
parent
d40da814
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/server.py
View file @
93d61151
...
...
@@ -60,8 +60,8 @@ class UploadFieldStorage(cgi.FieldStorage):
if
not
os
.
path
.
exists
(
tmp_folder
):
try
:
os
.
mkdir
(
tmp_folder
)
except
:
pass
fh
=
open
(
os
.
path
.
join
(
tmp_folder
,
self
.
filename
),
"w+"
)
fh_name
=
fh
.
name
fh
=
open
(
os
.
path
.
join
(
tmp_folder
,
self
.
filename
),
"w
b
+"
)
fh_name
=
fh
.
name
fh
.
write
(
self
.
file
.
getvalue
())
fh
.
close
()
return
fh_name
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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