Skip to content

Sign UploadPartRequest for MultipartUpload with ChecksumAlgorithm #2443

Answered by jmklix
WolfgangVogl asked this question in Q&A
Discussion options

You must be logged in to vote

Check out our tests to see how this can be used. I think this test is similar to what you are trying:

        static void DoPresignedUrlTest(const Aws::String& bucketName, std::shared_ptr<HttpRequest>& putRequest)
        {
            std::shared_ptr<Aws::IOStream> objectStream = Aws::MakeShared<Aws::StringStream>("BucketAndObjectOperationTest");
            *objectStream << "Test Object";
            objectStream->flush();

            putRequest->AddContentBody(objectStream);
            Aws::StringStream intConverter;
            intConverter << objectStream->tellp();
            putRequest->SetContentLength(intConverter.str());
            putRequest->SetContentType("text/plain");
  …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yasminetalby
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants