Skip to content
forked from sdossick/meteor

Making it even easier to work with Filepicker.io with Meteor

Notifications You must be signed in to change notification settings

bigthyme/meteor-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filepicker Smart Package for Meteor

Overview

Currently, this is a simple package that just helps insert the filepicker library into the project.

Install

First install Meteorite: npm install -g meteorite

Second, add the filepicker.io smart package: mrt add filepicker

Features

  • Adds the filepicker tag into the project

Known Potential Improvements

  • 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.

Current Improvements

  • Dynamic loading of API

Sample Usage

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();
    }
  });

About

Making it even easier to work with Filepicker.io with Meteor

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%