I am using Meteor Local filesystem to upload my assets using FS.Store.FileSystem API in a specific folder. But, I want to upload those assets category wise in seperate folders based on their type metadata. I can't figure out how to do this in Meteor. The original documentation suggest to use fileKeyMaker method. Can someone please explain it, how to use it to store assets in seperate folders?
AssetFiles = new FS.Collection("assets",{
stores : [
new FS.Store.FileSystem("AssetBundle",{path : '~/uploads'})
],
filter : {
maxSize: 5048576,
allow : {
extensions: ['pdf','FBX','cad','jpeg','gif','png','jpg']
}
}
});