percolatestudio/meteor-dropzone

Name: meteor-dropzone

Owner: Percolate Studio

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

Created: 2015-06-05 05:34:15.0

Updated: 2018-04-23 13:46:22.0

Pushed: 2015-06-05 05:51:18.0

Homepage: https://atmospherejs.com/dbarrett/dropzonejs

Size: 257

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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 1.0

Installation
meteor add dbarrett: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.

id is optional, if you do not set one, a random string will be used. url is not optional you must pass a url to the template.

Options

If you would like more control over your Dropzone. You can pass the full range of options found in the Dropzone documentation to the template e.g.

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

Or you can set the default options that every dropzone instance is instantiated with globally:

Meteor.Dropzone.options.maxFiles = 4;

These will be overridden by any parameters set in the template helper.

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:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.