Currently, this is a simple package that just helps insert the filepicker library into the project.
First install Meteorite:
npm install -g meteorite
Second, add the filepicker.io smart package:
mrt add filepicker
- Adds the filepicker tag into the project
- Should work offline by falling back to local uploads. Just not sure what kind of url to return.
- Should allow you to set your apikey somehow.
- Dynamic loading of API
if (Meteor.isClient) {
Template.hello.greeting = function () {
//Add your API key from filepicker
loadFilePicker('Ah2ncor59SkyV3OjU6MPbz');
return "Welcome to filepicker.";
};
Template.hello.events({
'click input' : function () {
if (typeof console !== 'undefined')
//Use the filepicker API how you'd like
filepicker.pick();
}
});