GithubHelp home page GithubHelp logo

tribemedia / meteor-dropzone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devonbarrett/meteor-dropzone

0.0 4.0 0.0 370 KB

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

Home Page: https://atmospherejs.com/dbarrett/dropzonejs

License: MIT License

CSS 16.51% JavaScript 83.38% HTML 0.11%

meteor-dropzone's Introduction

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:

  • Examples

meteor-dropzone's People

Contributors

aramk avatar devonbarrett avatar tmeasday avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.