dropzone ui component for react
npm install rc-dropzonedropzone ui component for react, support for IE11+, chrome and firefox.
[![NPM version][npm-image]][npm-url]

[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![node version][node-image]][node-url]
[![Sauce Test Status][saucelabs-image]][saucelabs-url]
[npm-image]: http://img.shields.io/npm/v/rc-dropzone.svg?style=flat-square
[npm-url]: http://npmjs.org/package/rc-dropzone
[travis-image]: https://img.shields.io/travis/react-components/dropzone.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-components/dropzone
[coveralls-image]: https://img.shields.io/coveralls/react-components/dropzone.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-components/dropzone?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[saucelabs-image]: https://saucelabs.com/browser-matrix/ewardsong.svg
[saucelabs-url]: https://saucelabs.com/u/ewardsong
dropzone for react.

``js
var Rcdropzone = require('rc-dropzone');
var React = require('react');
React.render(
Drop files here or click to upload.
(This is just a demo dropzone. Selected files are not actually uploaded.)
document.getElementById('__react-content'));
`
|name|type|默认值| 说明|
|-----|---|--------|----|
|paramName| string | file | 文件上传参数名 |
|accept | function | 接受所有文件| 返回一个Promise对象 |
|inputAccept| string | 空字符串 | file的accept参数|
| data | object | {} | post文件的时候,发送的其他参数 |
| success | function |无 | 上传成功回调 |
| error | function |无| 上传失败回调 |
> 说明:accept方法必须返回一个Promise对对象,通过resolve表示成功状态,reject表示失败,
> reject的第一个参数是错误信息.
online docs: http://spmjs.io/docs/rc-dropzone/
```
npm install
npm start
http://localhost:8000/examples/index.md
online example: http://spmjs.io/docs/rc-dropzone/examples/
http://localhost:8000/tests/runner.html?coverage
http://localhost:8000/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage
rc-dropzone is released under the MIT license.