S3存储桶中不存在文件-HTTP PUT

问题描述 投票:0回答:1

我的代码有什么问题?存储桶具有公共读/写许可权

String file = "sample-text.txt";
client.print("PUT /"); 
client.print(file);
client.print(" HTTP/1.1\r\n");

client.print("Host: my-bucket.my-s3-region-xxxx.amazonaws.com");
client.print("\r\n");

client.print("Content-Type: text/plain");
client.print("\r\n");
client.print("Cache-Control: no-cache");
client.print("\r\n");
client.print("Content-Length: ");
client.print(file.length())
client.print("\r\n");
client.stop();

似乎文件未上传到存储桶。不胜感激。

http amazon-s3 upload put bucket
1个回答
0
投票

[我猜没有人知道。谢谢

© www.soinside.com 2019 - 2024. All rights reserved.