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

feat: Allow instantiating an UploadPart from its constituent parts #552

Merged
merged 4 commits into from
Apr 28, 2024

Conversation

lwansbrough
Copy link
Contributor

Fixes #316

Objective here was to provide an easy way to create an UploadedPart -- currently in my worker code I'm deserializing a custom object into a part_number and an etag, which I then use to construct the UploadedPart to be passed to MultipartUpload::complete

@kflansburg
Copy link
Member

kflansburg commented Apr 19, 2024

@Jasper-Bekkers does this work in place of your PR (#547)?

@lwansbrough
Copy link
Contributor Author

Sorry, I pushed this before testing. 😬 I don't think the JsValues need to be wrapped in a promise.

@kflansburg kflansburg mentioned this pull request Apr 23, 2024
@Jasper-Bekkers
Copy link
Contributor

@Jasper-Bekkers does this work in place of your PR (#547)?

It should, yeah.

@Jasper-Bekkers
Copy link
Contributor

@lwansbrough it looks like the CI is failing on formatting, would you mind updating the PR so it can be merged?

@kflansburg kflansburg merged commit c6c83bb into cloudflare:main Apr 28, 2024
3 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
3 participants