Skip to content

Conversation

@dsfaccini
Copy link
Contributor

Replaces #3154

@dsfaccini dsfaccini changed the title implement implement FilePart.from_path Nov 19, 2025
if media_type is None:
media_type = 'application/octet-stream'

binary_content = BinaryContent(data=path.read_bytes(), media_type=media_type)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not on BinaryContent? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean the default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants