+ response.raise_for_status()
+ if resumable_file_path:
+ location = response.headers['Location']
+ with open(resumable_file_path, 'rb') as f:
+ response = session.put(
+ url=location,
+ data=StreamingIterator(file_size, f),
+ headers={"Content-Type": "application/octet-stream"},
+ )
+ response.raise_for_status()
+ return response