Skip to content

Change the attachment request to pass a file handle rather than reading in the bytes#383

Merged
leplatrem merged 2 commits intoKinto:mainfrom
gregtatum:attachment-truncation
Dec 11, 2024
Merged

Change the attachment request to pass a file handle rather than reading in the bytes#383
leplatrem merged 2 commits intoKinto:mainfrom
gregtatum:attachment-truncation

Conversation

@gregtatum
Copy link
Contributor

I was having some attachments get truncated when using this API, and tracked it down to the line where the file is being read into bytes. I'm not sure why this is truncating the file, but the fix is to pass in a file handle instead to requests.

Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

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

Thank you for taking the time to contribute the fix 🙏

@leplatrem leplatrem merged commit f85e012 into Kinto:main Dec 11, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants