Skip to content

Commit

Permalink
fixed upload of big file
Browse files Browse the repository at this point in the history
  • Loading branch information
MajoBerger committed Mar 6, 2024
1 parent 5d552d1 commit 5b31195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/create_bitstreams/create_bitstreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def _link(uuid):
with open(BIG_FILE_PATH, 'wb') as f:
f.seek(big_size)
f.write(b'\0')
b = get_bundle(dspace_be, item_big_file)
dspace_be.client.create_bitstream(
item_big_file, BIG_FILE_PATH, BIG_FILE_PATH, MULTIPART_CONTENT_TYPE)
b, BIG_FILE_PATH, BIG_FILE_PATH, MULTIPART_CONTENT_TYPE)
_logger.info(f"Created [{item_big_file.handle}] [{item_big_file.uuid}] with BIG file")
remove_file(BIG_FILE_PATH)

0 comments on commit 5b31195

Please sign in to comment.