使用一个 put 请求将多个文件上传到 s3

发布于 2024-10-03 15:55:54 字数 132 浏览 0 评论 0原文

我有很多小文件想要放入 s3 中。我的目标是最大限度地降低成本并使用尽可能少的放置请求。有没有办法仅使用一个 put 请求将多个文件流式传输到 s3 上?目前,我实现的代码对每个文件使用一个 put 请求,并直接从浏览器进入 s3。感谢您的任何建议。

I've got alot of small files that I'd like to put into s3. My goal is to minimize cost and use the fewest amount of put request's as possible. Is there anyway to stream multiple files onto s3 using only one put request? Currently the code I've implemented uses a put request per file and goes straight from the browser into s3. Thanks for any suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日裸衫吸 2024-10-10 15:55:54

检查他们的API,有batch()函数可以创建一系列要立即发送的请求。

Check their API, there is batch() function to create a series of requests to be sent at once.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文