Skip to content

Commit

Permalink
Merge pull request #200 from Targoman/s3_set_object_acl_to_public_read
Browse files Browse the repository at this point in the history
fix s3 acl to public_read
  • Loading branch information
kambizzandi authored Sep 4, 2022
2 parents 5ec431c + abe83c4 commit dfb3aa8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Interfaces/ObjectStorage/Gateways/gtwAWSS3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ bool gtwAWSS3::storeFile(

S3::Model::PutObjectRequest Request;

Request.SetBucket(_uploadGateway.ugwBucket.toStdString());
Request.SetKey(QString("%1/%2").arg(_path).arg(_fileName).toStdString());
Request
.WithBucket(_uploadGateway.ugwBucket.toStdString())
.WithKey(QString("%1/%2").arg(_path).arg(_fileName).toStdString())
.WithACL(S3::Model::ObjectCannedACL::public_read)
;

std::shared_ptr<Aws::IOStream> InputData = Aws::MakeShared<Aws::FStream>(
QString("SampleAllocationTag_%1").arg(_path).toStdString().c_str(),
Expand Down

0 comments on commit dfb3aa8

Please sign in to comment.