[ERROR] seahub.api2.endpoints.repo_file_uploaded_bytes:52 get 'SeafileAPI' object has no attribute 'get_upload_tmp_file_offset'

Can’t upload a file due to error “[ERROR] seahub.api2.endpoints.repo_file_uploaded_bytes:52 get ‘SeafileAPI’ object has no attribute ‘get_upload_tmp_file_offset’” found in logs/seahub.log.

I’ve seen this error elsewhere on the forum, with no resolution. How can I fix this?