S3 icon indicating copy to clipboard operation
S3 copied to clipboard

One Server Config per Uploader:

Open johnmore opened this issue 9 years ago • 3 comments

Hi @Lepozepo in order to separate images being resized on the server (by the lambda function) from other files I may need to upload (which I also want to run some lambda function on) I need to use different buckets since lambda only allows one function per triggered bucket.

Therefore I would love to be able to call S3.config per each uploader so that I don't need to expose my s3 bucket to the client on the uploader call.

Would that be possible? Or do you have any other suggestion for this kind of behaviour to work with the current S3 code?

Thanks in advance!

johnmore avatar Jul 27 '16 15:07 johnmore

Really Important for me! @Lepozepo do you have any kind of suggestion? Thank you in advance.

johnmore avatar Aug 19 '16 12:08 johnmore

Hey! You could run S3.config = <yoursettingsobject> on every call you make. That should work.

Lepozepo avatar Aug 23 '16 12:08 Lepozepo

But you'll have to tap into the package's Meteor.methods

Lepozepo avatar Aug 23 '16 12:08 Lepozepo