Do you know how to add the username in the S3 architecture ?
For exemple:
- appname - username - image1.jpg - image2.jpg - ...
I am using the amazing cfs:s3 package. But while it's server side, I think I can't use Meteor.user(), even in a method, no ? Here what i did, but actually don't work :
image = new FS.Store.S3("image", { accessKeyId: xxx, secretAccessKey: xxx, bucket: "appname", folder: Meteor.call(getUser); }); Meteor.methods ({ getUser: function () { return Meteor.user(); } });
Thank for your help