Skip to content

[ISSUE] name 'contents' is not defined in _parallel_multipart_upload_from_stream #1091

@LucaTorriani

Description

@LucaTorriani

Description
When calling workspace_client.files.upload() with the default parameters, an error occurs because the function _parallel_multipart_upload_from_stream references an undefined variable contents.

In the function definition, the parameter is named content, but inside the function body it incorrectly uses contents, causing a NameError.

Expected behavior
The upload should work without errors when using default parameters.

Is it a regression?
Yes, it was working in version 0.67.0 and also in 0.69.0

Other Information

  • OS: macOS
  • Version: 26.0

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions