Skip to content

aupac/ember-cli-dropzonejs

 
 

Repository files navigation

Ember-cli-dropzonejs

Drag and drop file uploader addon for ember-cli using Dropzonejs.

DEMO

Installation

ember install ember-cli-dropzonejs

then

bower install dropzone

This addon will use dropzone's default css by default. If you prefer to use your own css, add this option to your Brocfile.js:

var app = new EmberApp({
  ---
  emberCliDropzonejs: {
    includeDropzoneCss: false
  }
  ---
});

Usage

Simply add the component to your template like so: {{drop-zone url='/endpoint'}}

You can see all properties in the Dropzonejs configuration docs.

To set properties simply add the name of the property inside the component call and assign a value.

example:

{{drop-zone url='http://example.com/example' clickable=false addRemoveLinks=true}}

Remember to add an url, it will not work without it

About

Drag and drop file uploader addon using dropzonejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.3%
  • CSS 40.2%
  • HTML 5.5%