fog-aws
fog-aws copied to clipboard
put_object_url Support for Multipart Uploads
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.
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.