Commit 1c8ca862 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[controller] FSAjaxController.upload: fixed empty files handling

parent dc3bea87
......@@ -320,7 +320,7 @@ class FSAjaxController(AbstractController):
while True:
data = part.file.read(1024 ** 2)
if len(data) <= 0:
if append and len(data) <= 0:
break
success, msg = fs.save_file_content(filename, data,
......
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