diff --git a/renku/ui/service/controllers/cache_files_upload.py b/renku/ui/service/controllers/cache_files_upload.py index 2cd61170d3..39230bf276 100644 --- a/renku/ui/service/controllers/cache_files_upload.py +++ b/renku/ui/service/controllers/cache_files_upload.py @@ -121,7 +121,7 @@ def process_chunked_upload(self): with open(target_file_path, "wb") as target_file: for file_number in range(total_chunks): - with (chunks_dir / str(file_number)).open("r") as chunk: + with (chunks_dir / str(file_number)).open("rb") as chunk: shutil.copyfileobj(chunk, target_file) shutil.rmtree(chunks_dir)