我尝试在AWS论坛上发布以下问题,但收到错误消息-“您的帐户尚未准备好发布消息。”,这就是为什么我在此处发布此消息。
我正在阅读以下Amazon S3的示例代码:
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photo-album-full.html
无论何时创建新对象,示例代码都会将对象嵌套在无名子文件夹中,如下所示:
function addPhoto(albumName) {
var files = document.getElementById('photoupload').files;
if (!files.length) {
return alert('Please choose a file to upload first.');
}
var file = files[0];
var fileName = file.name;
// Why is the photo placed in a nameless subfolder (below)?
var albumPhotosKey = encodeURIComponent(albumName) + '//';
...
是否有特定原因/需要这样做?