{"action":"created","issue":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/79","repository_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files","labels_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/79/comments","events_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/79/events","html_url":"https://github.com/VeliovGroup/Meteor-Files/issues/79","id":155802088,"number":79,"title":"pass meta to onBeforeUpload","user":{"login":"menelike","id":4238881,"avatar_url":"https://avatars.githubusercontent.com/u/4238881?v=3","gravatar_id":"","url":"https://api.github.com/users/menelike","html_url":"https://github.com/menelike","followers_url":"https://api.github.com/users/menelike/followers","following_url":"https://api.github.com/users/menelike/following{/other_user}","gists_url":"https://api.github.com/users/menelike/gists{/gist_id}","starred_url":"https://api.github.com/users/menelike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menelike/subscriptions","organizations_url":"https://api.github.com/users/menelike/orgs","repos_url":"https://api.github.com/users/menelike/repos","events_url":"https://api.github.com/users/menelike/events{/privacy}","received_events_url":"https://api.github.com/users/menelike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T18:19:54Z","updated_at":"2016-05-19T19:06:01Z","closed_at":null,"body":"Sometimes I need to do validations based on user input, e.g. the directory name which the uploaded file should be referenced to. In those cases I need to check permissions on `onBeforeUpload`, but since the `meta` obj is not available there is no way to determine the permission.\r\n\r\nHow would this be solved with this lib? Any chance to add meta as additional arg to `onBeforeUpload` call?\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/comments/220422157","html_url":"https://github.com/VeliovGroup/Meteor-Files/issues/79#issuecomment-220422157","issue_url":"https://api.github.com/repos/VeliovGroup/Meteor-Files/issues/79","id":220422157,"user":{"login":"menelike","id":4238881,"avatar_url":"https://avatars.githubusercontent.com/u/4238881?v=3","gravatar_id":"","url":"https://api.github.com/users/menelike","html_url":"https://github.com/menelike","followers_url":"https://api.github.com/users/menelike/followers","following_url":"https://api.github.com/users/menelike/following{/other_user}","gists_url":"https://api.github.com/users/menelike/gists{/gist_id}","starred_url":"https://api.github.com/users/menelike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menelike/subscriptions","organizations_url":"https://api.github.com/users/menelike/orgs","repos_url":"https://api.github.com/users/menelike/repos","events_url":"https://api.github.com/users/menelike/events{/privacy}","received_events_url":"https://api.github.com/users/menelike/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T19:06:01Z","updated_at":"2016-05-19T19:06:01Z","body":"Thanks for the quick response @dr-dimitru \r\n\r\nI use this on the server only, and if the meta data does not validate (based on collection references) I want to permit the upload."}}