Skip to content

awatson1978/dropzone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor-Dropzone Build Status

Dropzone.js

DropzoneJS is an open source library that provides drag'n'drop file uploads with image previews.

Compatibility

Intended for versions of Meteor 0.8.2+

Installation

  • Pre-Install: Meteorite to gain the mrt command
  • Add Dropzonejs to your project with:
    mrt add Dropzonejs

Usage

In your handlebar templates you can just include the template Dropzonejs:

    {{> dropzone url='http://somewebsite.com/upload' id='dropzoneDiv'}}

Which will post any uploaded files to the url of your choice.

Options

If you would like more control over your Dropzone. You can instantiate one on any html element and pass a range of events and options.

    $(selector).dropzone(options);
    window.Dropzone.discover();

A full list of options can be found in the Dropzone documentation

Contributors

Todo

Pull requests are very welcome if you are looking for a starting point:

  • Tests
  • Ability to pass options to the template

About

A Meteor smart package for the popular file picker http://www.dropzonejs.com/

Resources

License

Stars

Watchers

Forks

Packages

No packages published