@@ -49,6 +49,10 @@ bool gtwAWSS3::storeFile(
49
49
<< " ]"
50
50
);
51
51
52
+ TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__ << " QFile::exists" );
53
+ if (QFile::exists (_fullFileName) == false )
54
+ throw exTargomanBase (QString (" File %1 not found" ).arg (_fullFileName));
55
+
52
56
// QString Bucket = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::Bucket].toString();
53
57
// QString EndpointUrl = _uploadGateway.ugwMetaInfo[AWSS3MetaInfoJsonKey::EndpointUrl].toString();
54
58
@@ -101,8 +105,9 @@ bool gtwAWSS3::storeFile(
101
105
TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__);
102
106
Request.SetBucket (_uploadGateway.ugwBucket .toStdString ());
103
107
104
- TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__);
105
- Request.SetKey (QString (" %1/%2" ).arg (_path).arg (_fileName).toStdString ());
108
+ QString Key = QString (" %1/%2" ).arg (_path).arg (_fileName);
109
+ TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__ << Key);
110
+ Request.SetKey (Key.toStdString ());
106
111
107
112
TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__);
108
113
Request.SetACL (S3::Model::ObjectCannedACL::public_read);
@@ -117,7 +122,7 @@ bool gtwAWSS3::storeFile(
117
122
Request.SetBody (InputData);
118
123
119
124
// ----------------------------------------
120
- TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__);
125
+ TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__ << " S3Client.PutObject " );
121
126
S3::Model::PutObjectOutcome Outcome = S3Client.PutObject (Request);
122
127
123
128
TargomanLogDebug (5 , " *** gtwAWSS3::storeFile: #" << __LINE__);
0 commit comments