new TODO: ne dela za več fileov
parent
17a15dd416
commit
fb67c7a49f
|
@ -45,8 +45,8 @@ def upload_file():
|
||||||
script_path = os.path.dirname(os.path.abspath(__file__))
|
script_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
temp_path = os.path.join(script_path, "temp")
|
temp_path = os.path.join(script_path, "temp")
|
||||||
|
|
||||||
|
# @TODO ne dela za več fajlov
|
||||||
#a lot of stuff can wrong here and nobody may know
|
# a lot of stuff can wrong here and nobody may know
|
||||||
with tempfile.NamedTemporaryFile(dir=temp_path, delete=False) as fp:
|
with tempfile.NamedTemporaryFile(dir=temp_path, delete=False) as fp:
|
||||||
fp.write(upload.stream.read())
|
fp.write(upload.stream.read())
|
||||||
path = fp.name
|
path = fp.name
|
||||||
|
|
Loading…
Reference in New Issue