多个文件的预签名网址? [英] Pre-signed url for multiple files?

查看:67
本文介绍了多个文件的预签名网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个实现,用于为aws-s3上的存储桶生成预签名的URL.可以正常工作,用于获取单个文件/对象.

I have written an implementation for generating pre-signed URLS for a bucket on aws-s3. It works fine, for getting single files/objects.

如何为整个目录生成预签名URL?这么说吧,在我的s3存储桶中,有多个文件夹以及它们自己的小型html5应用程序.每个文件夹都有自己的html,css,js和媒体文件集.在这种情况下,我不会为单个对象生成一个预签名的URL.

How would I go about this for generating pre-signed URLS for entire directories? Lets put it this way, on my s3 bucket, there are multiple folders with their own small html5 applications. Each folder has their own set of html, css, js, as well as media files. I wouldn't be generating a pre-signed URL for single object, in this case.

如果我为单个文件提供一个预签名的url,例如:一个文件夹的index.html,则该文件还需要加载css,js和媒体文件.我们没有签名网址的文件.

If I give a pre-signed url for a single file, for example: an index.html for a folder, that file would also need to load css, js, and media files as well. Files we don't have a signed url for.

我不太确定如何实现此目标.

I'm just not too sure on how to go about implementing this.

推荐答案

否,他们需要提供一个API,以允许您首先上传多个文件.这是对API的限制,而不是预签名.

No, they would need to provide an API to allow you to upload multiple files first. This is a limitation of the API, not pre-signing.

请参见是否可以批量上传到Amazon s3?.

这篇关于多个文件的预签名网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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