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

put_object_url Support for Multipart Uploads #700

Open
homerlex opened this issue Jan 31, 2024 · 1 comment
Open

put_object_url Support for Multipart Uploads #700

homerlex opened this issue Jan 31, 2024 · 1 comment

Comments

@homerlex
Copy link

Is there a way to specify part number and upload id when doing a put_object_url in order to get a signed url for part of a multipart upload? I tried adding upload_id and part_number in the options but it had no affect.

@geemus
Copy link
Member

geemus commented Feb 6, 2024

Great question. I've never had to do this myself, but it seems from some initial web searches that it would be possible.

I think maybe we would want to duplicate the query params from the normal upload_part code, which looks like this:

:query => {'uploadId' => upload_id, 'partNumber' => part_number}

Although, I think you were on the right path that this needs to be in options, I think it would also need to be nested under query, so roughly, something like:

options = { query: { 'uploadId' => upload_id, 'partNumber' => part_number } }

I'm not totally sure on that, but I'm hopeful that will at least get you closer. If we can figure it out, it would be great to add some extra documentation around this for future users too. Just let me know if this helps and/or if you have more questions.

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

No branches or pull requests

2 participants