Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CreateAttachment to stream data from disk when possible #3322

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

mkrasnitski
Copy link
Collaborator

Implements #2690, as a second attempt at #2774. Defers reading from paths/files until the data is actually needed, which improves the performance of multipart file uploads by streaming directly from disk instead of copying into memory first. Cases where the file is included as a base64 string in the json payload are unaffected since the data needs to be encoded and written into the payload.

@github-actions github-actions bot added model Related to the `model` module. builder Related to the `builder` module. http Related to the `http` module. examples Related to Serenity's examples. labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder Related to the `builder` module. examples Related to Serenity's examples. http Related to the `http` module. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant