admin管理员组文章数量:1399145
I am working on an Angular / JavaScript App:
Is there a way to press (zip) and download multiple files from a S3 bucket.
OR
Copy the selected files to a dynamic folder and download the folder in the as a zip file from a S3 bucket.
I am working on an Angular / JavaScript App:
Is there a way to press (zip) and download multiple files from a S3 bucket.
OR
Copy the selected files to a dynamic folder and download the folder in the as a zip file from a S3 bucket.
Share Improve this question edited Jun 1, 2020 at 14:36 Gh05d 9,02211 gold badges40 silver badges82 bronze badges asked Jun 1, 2020 at 13:01 Gautham RajGautham Raj 711 gold badge2 silver badges6 bronze badges 4- stackoverflow./questions/43275575/… – Gh05d Commented Jun 1, 2020 at 13:05
- Does this answer your question? Amazon S3 console: download multiple files at once – avocadoLambda Commented Jun 1, 2020 at 13:06
- Does this answer your question? How to zip files in Amazon s3 Bucket and get its URL – Jan Commented Jun 1, 2020 at 18:43
- This is what you want stackoverflow./a/73081269/10447654 – javrd Commented Aug 2, 2022 at 11:23
2 Answers
Reset to default 1Since S3 is just a file storage service, so it won't zip your "folders" on the fly. You can either use the sync mand of AWS CLI to download all files whose object keys start with a given prefix, or you need some other AWS service such as Lambda, EC2, Fargate to zip those "folders" before downloading.
One addition (unable to ment, too n00b on SO). You can now mount an EFS that your Lambda functions can access, this will help with extremely large files (incredibly low latency memory access).
Caveat: this EFS mount is persistent amongst any lambda function you mount it to (ie: 2 lambda functions with the same EFS mounted will have simultaneous access to the files). This could be a problem... or it's a great solution to maintain state between lambda functions. Perspective I suppose.
本文标签: javascriptDownload multiple files from S3 bucket in the form of Zip fileStack Overflow
版权声明:本文标题:javascript - Download multiple files from S3 bucket in the form of Zip file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744213272a2595520.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论