Skip to content

api/private/deposit_read: Read tarball by chunks to avoid errors

When the django storage backend storing deposited tarballs is a remote one (azure for instance), IncompleteRead errors can happen if the size of the tarball to read is large.

Prefer to read tarball bytes by chunks instead to avoid these kind of issues.

Fixes #4653 (closed).

Merge request reports

Loading