S3存储桶可以生成自己的对象密钥名称吗? [英] Can an S3 bucket generate its own object key names?

查看:82
本文介绍了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.

这篇关于S3存储桶可以生成自己的对象密钥名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆