S3存储桶可以生成自己的对象密钥名称吗?
问题描述:
我正在将Amazon API Gateway配置为S3存储桶的代理.理想情况下,我希望客户端能够将文件发布到存储桶中,让S3为它分配文件名,然后在响应中返回该名称.我不想让客户端可以指定文件名.这可能吗?设置代理的文档根本没有提到POST,而我发现的其他POST示例仍然需要客户端指定密钥名称.
I'm configuring the Amazon API Gateway as a proxy for an S3 bucket. Ideally, I'd like the client to be able to POST a file to a bucket, have S3 assign it a file name, and then return that name in the response. I don't want to give the client the ability to specify the file name. Is this possible? The documentation for setting up the proxy doesn't mention POST at all, and other POST examples I've found still require the client to specify the key name.
答
否,S3不支持自动文件名生成.
No, auto file name generation isn't supported in S3.