我在 s3 ios sdk 上看到了一个使用密钥上传文件的示例。但是,我找不到任何将文件上传到存储桶下的子文件夹的示例。如何指定我要上传到的子文件夹?
AWSS3TransferManagerUploadRequest *uploadRequest = [AWSS3TransferManagerUploadRequest new];
uploadRequest.bucket = yourBucket;
uploadRequest.key = yourKey;
uploadRequest.body = yourDataURL;
uploadRequest.contentLength = [NSNumber numberWithUnsignedLongLong:fileSize];
[[transferManager upload:uploadRequest] continueWithBlock:^id(BFTask *task) {
// Do something with the response
return nil;
}];