我正在尝试将示例PDF文件上传到Amazon S3并且它失败了。
Dim putRequest1 As PutObjectRequest = New PutObjectRequest()
putRequest1.BucketName = "fneticket"
putRequest1.Key = "test_FN_key"
putRequest1.FilePath = "C:\Temp\ABELGAS-0065796409909.pdf"
putRequest1.ContentType = "application/pdf"
putRequest1.Metadata.Add("x-amz-meta-title", "test_FN_S3_Upload")
Dim response1 As PutObjectResponse = client.PutObject(putRequest1)
我也不确定是否还需要添加其他内容。什么是' Key&#39 ;?我现在只是添加一个随机密钥吗?