Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generating signed urls for a large list of files #44

Open
omidmaldar opened this issue Aug 27, 2017 · 1 comment
Open

generating signed urls for a large list of files #44

omidmaldar opened this issue Aug 27, 2017 · 1 comment

Comments

@omidmaldar
Copy link

In Nodejs, generating signed url for a large list of files(~1000) takes time because it does the job in a single-thread manner. So I'm interested to know is there a way to create signed url for multiple files at once? for example by passing an array of object keys instead of passing one at a time? Or shall I consider generating signed-cookies? thanks

@vhmth
Copy link

vhmth commented Jan 30, 2018

Hey @omidmaldar what you can do is get signed cookies for a large list of files and then attach those cookies as URL params without the CloudFront- at the beginning of the param. One thing you may also want to attach is an Expires param that's essentially the expiration time you pass in. You can attach these values as either cookies or URL params and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants