Kal*_*Kal 3 amazon-s3 amazon-web-services c#-4.0
以下内容失败,并显示以下错误消息:"指定的上载不存在.上载ID可能无效,或者上载可能已中止或已完成."
UploadPartRequest uploadRequest = new UploadPartRequest()
.WithBucketName(IniValues.Instance.TargetBucketName)
.WithKey("junk/20070125.log")
.WithUploadId(initResponse.UploadId)
.WithPartNumber(i)
.WithPartSize(partSize)
.WithFilePosition(filePosition)
.WithFilePath("C:\\InetTemp\\Logs\\20070125.log");
Run Code Online (Sandbox Code Playgroud)
问题在于".WithKey("junk/20070125.log")".如果我剥离出"垃圾/"它完美无缺.
所以问题是,如何将文件上传到特定的AWS目录?我找到的所有文档都显示了正确的方法来预先添加目录名称和正斜杠.我错过了什么?
| 归档时间: |
|
| 查看次数: |
1026 次 |
| 最近记录: |