| 1 |
 |
| 2 |
|
| 3 |
# react-dropzone |
| 4 |
[](https://www.npmjs.com/package/react-dropzone) |
| 5 |
 |
| 6 |
[](https://codecov.io/gh/react-dropzone/react-dropzone) |
| 7 |
[](#backers) |
| 8 |
[](#sponsors) |
| 9 |
[](https://gitpod.io/#https://github.com/react-dropzone/react-dropzone) |
| 10 |
[](https://github.com/react-dropzone/.github/blob/main/CODE_OF_CONDUCT.md) |
| 11 |
|
| 12 |
Simple React hook to create a HTML5-compliant drag'n'drop zone for files. |
| 13 |
|
| 14 |
Documentation and examples at https://react-dropzone.js.org. Source code at https://github.com/react-dropzone/react-dropzone/. |
| 15 |
|
| 16 |
|
| 17 |
## Installation |
| 18 |
Install it from npm and include it in your React build process (using [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/), etc). |
| 19 |
|
| 20 |
```bash |
| 21 |
npm install --save react-dropzone |
| 22 |
``` |
| 23 |
or: |
| 24 |
```bash |
| 25 |
yarn add react-dropzone |
| 26 |
``` |
| 27 |
|
| 28 |
|
| 29 |
## Usage |
| 30 |
You can either use the hook: |
| 31 |
|
| 32 |
```jsx static |
| 33 |
import React, {useCallback} from 'react' |
| 34 |
import {useDropzone} from 'react-dropzone' |
| 35 |
|
| 36 |
function MyDropzone() { |
| 37 |
const onDrop = useCallback(acceptedFiles => { |
| 38 |
// Do something with the files |
| 39 |
}, []) |
| 40 |
const {getRootProps, getInputProps, isDragActive} = useDropzone({onDrop}) |
| 41 |
|
| 42 |
return ( |
| 43 |
<div {...getRootProps()}> |
| 44 |
<input {...getInputProps()} /> |
| 45 |
{ |
| 46 |
isDragActive ? |
| 47 |
<p>Drop the files here ...</p> : |
| 48 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 49 |
} |
| 50 |
</div> |
| 51 |
) |
| 52 |
} |
| 53 |
``` |
| 54 |
|
| 55 |
Or the wrapper component for the hook: |
| 56 |
```jsx static |
| 57 |
import React from 'react' |
| 58 |
import Dropzone from 'react-dropzone' |
| 59 |
|
| 60 |
<Dropzone onDrop={acceptedFiles => console.log(acceptedFiles)}> |
| 61 |
{({getRootProps, getInputProps}) => ( |
| 62 |
<section> |
| 63 |
<div {...getRootProps()}> |
| 64 |
<input {...getInputProps()} /> |
| 65 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 66 |
</div> |
| 67 |
</section> |
| 68 |
)} |
| 69 |
</Dropzone> |
| 70 |
``` |
| 71 |
|
| 72 |
If you want to access file contents you have to use the [FileReader API](https://developer.mozilla.org/en-US/docs/Web/API/FileReader): |
| 73 |
|
| 74 |
```jsx static |
| 75 |
import React, {useCallback} from 'react' |
| 76 |
import {useDropzone} from 'react-dropzone' |
| 77 |
|
| 78 |
function MyDropzone() { |
| 79 |
const onDrop = useCallback((acceptedFiles) => { |
| 80 |
acceptedFiles.forEach((file) => { |
| 81 |
const reader = new FileReader() |
| 82 |
|
| 83 |
reader.onabort = () => console.log('file reading was aborted') |
| 84 |
reader.onerror = () => console.log('file reading has failed') |
| 85 |
reader.onload = () => { |
| 86 |
// Do whatever you want with the file contents |
| 87 |
const binaryStr = reader.result |
| 88 |
console.log(binaryStr) |
| 89 |
} |
| 90 |
reader.readAsArrayBuffer(file) |
| 91 |
}) |
| 92 |
|
| 93 |
}, []) |
| 94 |
const {getRootProps, getInputProps} = useDropzone({onDrop}) |
| 95 |
|
| 96 |
return ( |
| 97 |
<div {...getRootProps()}> |
| 98 |
<input {...getInputProps()} /> |
| 99 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 100 |
</div> |
| 101 |
) |
| 102 |
} |
| 103 |
``` |
| 104 |
|
| 105 |
|
| 106 |
## Dropzone Props Getters |
| 107 |
The dropzone property getters are just two functions that return objects with properties which you need to use to create the drag 'n' drop zone. |
| 108 |
The root properties can be applied to whatever element you want, whereas the input properties must be applied to an `<input>`: |
| 109 |
```jsx static |
| 110 |
import React from 'react' |
| 111 |
import {useDropzone} from 'react-dropzone' |
| 112 |
|
| 113 |
function MyDropzone() { |
| 114 |
const {getRootProps, getInputProps} = useDropzone() |
| 115 |
|
| 116 |
return ( |
| 117 |
<div {...getRootProps()}> |
| 118 |
<input {...getInputProps()} /> |
| 119 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 120 |
</div> |
| 121 |
) |
| 122 |
} |
| 123 |
``` |
| 124 |
|
| 125 |
Note that whatever other props you want to add to the element where the props from `getRootProps()` are set, you should always pass them through that function rather than applying them on the element itself. |
| 126 |
This is in order to avoid your props being overridden (or overriding the props returned by `getRootProps()`): |
| 127 |
```jsx static |
| 128 |
<div |
| 129 |
{...getRootProps({ |
| 130 |
onClick: event => console.log(event), |
| 131 |
role: 'button', |
| 132 |
'aria-label': 'drag and drop area', |
| 133 |
... |
| 134 |
})} |
| 135 |
/> |
| 136 |
``` |
| 137 |
|
| 138 |
In the example above, the provided `{onClick}` handler will be invoked before the internal one, therefore, internal callbacks can be prevented by simply using [stopPropagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation). |
| 139 |
See [Events](https://react-dropzone.js.org#events) for more examples. |
| 140 |
|
| 141 |
*Important*: if you omit rendering an `<input>` and/or binding the props from `getInputProps()`, opening a file dialog will not be possible. |
| 142 |
|
| 143 |
## Refs |
| 144 |
Both `getRootProps` and `getInputProps` accept a custom `refKey` (defaults to `ref`) as one of the attributes passed down in the parameter. |
| 145 |
|
| 146 |
This can be useful when the element you're trying to apply the props from either one of those fns does not expose a reference to the element, e.g: |
| 147 |
|
| 148 |
```jsx static |
| 149 |
import React from 'react' |
| 150 |
import {useDropzone} from 'react-dropzone' |
| 151 |
// NOTE: After v4.0.0, styled components exposes a ref using forwardRef, |
| 152 |
// therefore, no need for using innerRef as refKey |
| 153 |
import styled from 'styled-components' |
| 154 |
|
| 155 |
const StyledDiv = styled.div` |
| 156 |
// Some styling here |
| 157 |
` |
| 158 |
function Example() { |
| 159 |
const {getRootProps, getInputProps} = useDropzone() |
| 160 |
<StyledDiv {...getRootProps({ refKey: 'innerRef' })}> |
| 161 |
<input {...getInputProps()} /> |
| 162 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 163 |
</StyledDiv> |
| 164 |
} |
| 165 |
``` |
| 166 |
|
| 167 |
If you're working with [Material UI v4](https://v4.mui.com/) and would like to apply the root props on some component that does not expose a ref, use [RootRef](https://v4.mui.com/api/root-ref/): |
| 168 |
|
| 169 |
```jsx static |
| 170 |
import React from 'react' |
| 171 |
import {useDropzone} from 'react-dropzone' |
| 172 |
import RootRef from '@material-ui/core/RootRef' |
| 173 |
|
| 174 |
function PaperDropzone() { |
| 175 |
const {getRootProps, getInputProps} = useDropzone() |
| 176 |
const {ref, ...rootProps} = getRootProps() |
| 177 |
|
| 178 |
<RootRef rootRef={ref}> |
| 179 |
<Paper {...rootProps}> |
| 180 |
<input {...getInputProps()} /> |
| 181 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 182 |
</Paper> |
| 183 |
</RootRef> |
| 184 |
} |
| 185 |
``` |
| 186 |
|
| 187 |
**IMPORTANT**: do not set the `ref` prop on the elements where `getRootProps()`/`getInputProps()` props are set, instead, get the refs from the hook itself: |
| 188 |
|
| 189 |
```jsx static |
| 190 |
import React from 'react' |
| 191 |
import {useDropzone} from 'react-dropzone' |
| 192 |
|
| 193 |
function Refs() { |
| 194 |
const { |
| 195 |
getRootProps, |
| 196 |
getInputProps, |
| 197 |
rootRef, // Ref to the `<div>` |
| 198 |
inputRef // Ref to the `<input>` |
| 199 |
} = useDropzone() |
| 200 |
<div {...getRootProps()}> |
| 201 |
<input {...getInputProps()} /> |
| 202 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 203 |
</div> |
| 204 |
} |
| 205 |
``` |
| 206 |
|
| 207 |
If you're using the `<Dropzone>` component, though, you can set the `ref` prop on the component itself which will expose the `{open}` prop that can be used to open the file dialog programmatically: |
| 208 |
|
| 209 |
```jsx static |
| 210 |
import React, {createRef} from 'react' |
| 211 |
import Dropzone from 'react-dropzone' |
| 212 |
|
| 213 |
const dropzoneRef = createRef() |
| 214 |
|
| 215 |
<Dropzone ref={dropzoneRef}> |
| 216 |
{({getRootProps, getInputProps}) => ( |
| 217 |
<div {...getRootProps()}> |
| 218 |
<input {...getInputProps()} /> |
| 219 |
<p>Drag 'n' drop some files here, or click to select files</p> |
| 220 |
</div> |
| 221 |
)} |
| 222 |
</Dropzone> |
| 223 |
|
| 224 |
dropzoneRef.open() |
| 225 |
``` |
| 226 |
|
| 227 |
|
| 228 |
## Testing |
| 229 |
`react-dropzone` makes some of its drag 'n' drop callbacks asynchronous to enable promise based `getFilesFromEvent()` functions. In order to test components that use this library, you need to use the [react-testing-library](https://github.com/testing-library/react-testing-library): |
| 230 |
```js static |
| 231 |
import React from 'react' |
| 232 |
import Dropzone from 'react-dropzone' |
| 233 |
import {act, fireEvent, render} from '@testing-library/react' |
| 234 |
|
| 235 |
test('invoke onDragEnter when dragenter event occurs', async () => { |
| 236 |
const file = new File([ |
| 237 |
JSON.stringify({ping: true}) |
| 238 |
], 'ping.json', { type: 'application/json' }) |
| 239 |
const data = mockData([file]) |
| 240 |
const onDragEnter = jest.fn() |
| 241 |
|
| 242 |
const ui = ( |
| 243 |
<Dropzone onDragEnter={onDragEnter}> |
| 244 |
{({ getRootProps, getInputProps }) => ( |
| 245 |
<div {...getRootProps()}> |
| 246 |
<input {...getInputProps()} /> |
| 247 |
</div> |
| 248 |
)} |
| 249 |
</Dropzone> |
| 250 |
) |
| 251 |
const { container } = render(ui) |
| 252 |
|
| 253 |
await act( |
| 254 |
() => fireEvent.dragEnter( |
| 255 |
container.querySelector('div'), |
| 256 |
data, |
| 257 |
) |
| 258 |
); |
| 259 |
expect(onDragEnter).toHaveBeenCalled() |
| 260 |
}) |
| 261 |
|
| 262 |
function mockData(files) { |
| 263 |
return { |
| 264 |
dataTransfer: { |
| 265 |
files, |
| 266 |
items: files.map(file => ({ |
| 267 |
kind: 'file', |
| 268 |
type: file.type, |
| 269 |
getAsFile: () => file |
| 270 |
})), |
| 271 |
types: ['Files'] |
| 272 |
} |
| 273 |
} |
| 274 |
} |
| 275 |
``` |
| 276 |
|
| 277 |
**NOTE**: using [Enzyme](https://airbnb.io/enzyme) for testing is not supported at the moment, see [#2011](https://github.com/airbnb/enzyme/issues/2011). |
| 278 |
|
| 279 |
More examples for this can be found in `react-dropzone`'s own [test suites](https://github.com/react-dropzone/react-dropzone/blob/master/src/index.spec.js). |
| 280 |
|
| 281 |
## Caveats |
| 282 |
### Required React Version |
| 283 |
React [16.8](https://reactjs.org/blog/2019/02/06/react-v16.8.0.html) or above is required because we use [hooks](https://reactjs.org/docs/hooks-intro.html) (the lib itself is a hook). |
| 284 |
|
| 285 |
### File Paths |
| 286 |
Files returned by the hook or passed as arg to the `onDrop` cb won't have the properties `path` or `fullPath`. |
| 287 |
For more inf check [this SO question](https://stackoverflow.com/a/23005925/2275818) and [this issue](https://github.com/react-dropzone/react-dropzone/issues/477). |
| 288 |
|
| 289 |
### Not a File Uploader |
| 290 |
This lib is not a file uploader; as such, it does not process files or provide any way to make HTTP requests to some server; if you're looking for that, checkout [filepond](https://pqina.nl/filepond) or [uppy.io](https://uppy.io/). |
| 291 |
|
| 292 |
### Using \<label\> as Root |
| 293 |
If you use [\<label\>](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label) as the root element, the file dialog will be opened twice; see [#1107](https://github.com/react-dropzone/react-dropzone/issues/1107) why. To avoid this, use `noClick`: |
| 294 |
```jsx static |
| 295 |
import React, {useCallback} from 'react' |
| 296 |
import {useDropzone} from 'react-dropzone' |
| 297 |
|
| 298 |
function MyDropzone() { |
| 299 |
const {getRootProps, getInputProps} = useDropzone({noClick: true}) |
| 300 |
|
| 301 |
return ( |
| 302 |
<label {...getRootProps()}> |
| 303 |
<input {...getInputProps()} /> |
| 304 |
</label> |
| 305 |
) |
| 306 |
} |
| 307 |
``` |
| 308 |
|
| 309 |
### Using open() on Click |
| 310 |
If you bind a click event on an inner element and use `open()`, it will trigger a click on the root element too, resulting in the file dialog opening twice. To prevent this, use the `noClick` on the root: |
| 311 |
```jsx static |
| 312 |
import React, {useCallback} from 'react' |
| 313 |
import {useDropzone} from 'react-dropzone' |
| 314 |
|
| 315 |
function MyDropzone() { |
| 316 |
const {getRootProps, getInputProps, open} = useDropzone({noClick: true}) |
| 317 |
|
| 318 |
return ( |
| 319 |
<div {...getRootProps()}> |
| 320 |
<input {...getInputProps()} /> |
| 321 |
<button type="button" onClick={open}> |
| 322 |
Open |
| 323 |
</button> |
| 324 |
</div> |
| 325 |
) |
| 326 |
} |
| 327 |
``` |
| 328 |
|
| 329 |
### File Dialog Cancel Callback |
| 330 |
The `onFileDialogCancel()` cb is unstable in most browsers, meaning, there's a good chance of it being triggered even though you have selected files. |
| 331 |
|
| 332 |
We rely on using a timeout of `300ms` after the window is focused (the window `onfocus` event is triggered when the file select dialog is closed) to check if any files were selected and trigger `onFileDialogCancel` if none were selected. |
| 333 |
|
| 334 |
As one can imagine, this doesn't really work if there's a lot of files or large files as by the time we trigger the check, the browser is still processing the files and no `onchange` events are triggered yet on the input. Check [#1031](https://github.com/react-dropzone/react-dropzone/issues/1031) for more info. |
| 335 |
|
| 336 |
Fortunately, there's the [File System Access API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API), which is currently a working draft and some browsers support it (see [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker#browser_compatibility)), that provides a reliable way to prompt the user for file selection and capture cancellation. |
| 337 |
|
| 338 |
Also keep in mind that the FS access API can only be used in [secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts). |
| 339 |
|
| 340 |
**NOTE** You can enable using the FS access API with the `useFsAccessApi` property: `useDropzone({useFsAccessApi: true})`. |
| 341 |
|
| 342 |
### File System Access API |
| 343 |
|
| 344 |
When setting `useFsAccessApi` to `true`, you're switching to the [File System API](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API) (see the [file system access](https://wicg.github.io/file-system-access/) RFC). |
| 345 |
|
| 346 |
What this essentially does is that it will use the [showOpenFilePicker](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker) method to open the file picker window so that the user can select files. |
| 347 |
|
| 348 |
In contrast, the traditional way (when the `useFsAccessApi` is not set to `true` or not specified) uses an `<input type="file">` (see [docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file)) on which a click event is triggered. |
| 349 |
|
| 350 |
With the use of the file system access API enabled, there's a couple of caveats to keep in mind: |
| 351 |
1. The users will not be able to select directories |
| 352 |
2. It requires the app to run in a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) |
| 353 |
3. In [Electron](https://www.electronjs.org/), the path may not be set (see [#1249](https://github.com/react-dropzone/react-dropzone/issues/1249)) |
| 354 |
|
| 355 |
## Supported Browsers |
| 356 |
We use [browserslist](https://github.com/browserslist/browserslist) config to state the browser support for this lib, so check it out on [browserslist.dev](https://browserslist.dev/?q=ZGVmYXVsdHM%3D). |
| 357 |
|
| 358 |
|
| 359 |
## Need image editing? |
| 360 |
React Dropzone integrates perfectly with [Pintura Image Editor](https://pqina.nl/pintura/?ref=react-dropzone), creating a modern image editing experience. Pintura supports crop aspect ratios, resizing, rotating, cropping, annotating, filtering, and much more. |
| 361 |
|
| 362 |
Checkout the [Pintura integration example](https://codesandbox.io/s/react-dropzone-pintura-40xh4?file=/src/App.js). |
| 363 |
|
| 364 |
|
| 365 |
## Support |
| 366 |
|
| 367 |
### Backers |
| 368 |
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/react-dropzone#backer)] |
| 369 |
|
| 370 |
<a href="https://opencollective.com/react-dropzone/backer/0/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/0/avatar.svg"></a> |
| 371 |
<a href="https://opencollective.com/react-dropzone/backer/1/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/1/avatar.svg"></a> |
| 372 |
<a href="https://opencollective.com/react-dropzone/backer/2/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/2/avatar.svg"></a> |
| 373 |
<a href="https://opencollective.com/react-dropzone/backer/3/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/3/avatar.svg"></a> |
| 374 |
<a href="https://opencollective.com/react-dropzone/backer/4/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/4/avatar.svg"></a> |
| 375 |
<a href="https://opencollective.com/react-dropzone/backer/5/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/5/avatar.svg"></a> |
| 376 |
<a href="https://opencollective.com/react-dropzone/backer/6/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/6/avatar.svg"></a> |
| 377 |
<a href="https://opencollective.com/react-dropzone/backer/7/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/7/avatar.svg"></a> |
| 378 |
<a href="https://opencollective.com/react-dropzone/backer/8/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/8/avatar.svg"></a> |
| 379 |
<a href="https://opencollective.com/react-dropzone/backer/9/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/9/avatar.svg"></a> |
| 380 |
<a href="https://opencollective.com/react-dropzone/backer/10/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/10/avatar.svg"></a> |
| 381 |
<a href="https://opencollective.com/react-dropzone/backer/11/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/11/avatar.svg"></a> |
| 382 |
<a href="https://opencollective.com/react-dropzone/backer/12/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/12/avatar.svg"></a> |
| 383 |
<a href="https://opencollective.com/react-dropzone/backer/13/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/13/avatar.svg"></a> |
| 384 |
<a href="https://opencollective.com/react-dropzone/backer/14/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/14/avatar.svg"></a> |
| 385 |
<a href="https://opencollective.com/react-dropzone/backer/15/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/15/avatar.svg"></a> |
| 386 |
<a href="https://opencollective.com/react-dropzone/backer/16/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/16/avatar.svg"></a> |
| 387 |
<a href="https://opencollective.com/react-dropzone/backer/17/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/17/avatar.svg"></a> |
| 388 |
<a href="https://opencollective.com/react-dropzone/backer/18/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/18/avatar.svg"></a> |
| 389 |
<a href="https://opencollective.com/react-dropzone/backer/19/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/19/avatar.svg"></a> |
| 390 |
<a href="https://opencollective.com/react-dropzone/backer/20/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/20/avatar.svg"></a> |
| 391 |
<a href="https://opencollective.com/react-dropzone/backer/21/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/21/avatar.svg"></a> |
| 392 |
<a href="https://opencollective.com/react-dropzone/backer/22/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/22/avatar.svg"></a> |
| 393 |
<a href="https://opencollective.com/react-dropzone/backer/23/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/23/avatar.svg"></a> |
| 394 |
<a href="https://opencollective.com/react-dropzone/backer/24/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/24/avatar.svg"></a> |
| 395 |
<a href="https://opencollective.com/react-dropzone/backer/25/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/25/avatar.svg"></a> |
| 396 |
<a href="https://opencollective.com/react-dropzone/backer/26/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/26/avatar.svg"></a> |
| 397 |
<a href="https://opencollective.com/react-dropzone/backer/27/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/27/avatar.svg"></a> |
| 398 |
<a href="https://opencollective.com/react-dropzone/backer/28/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/28/avatar.svg"></a> |
| 399 |
<a href="https://opencollective.com/react-dropzone/backer/29/website" target="_blank"><img src="https://opencollective.com/react-dropzone/backer/29/avatar.svg"></a> |
| 400 |
|
| 401 |
|
| 402 |
### Sponsors |
| 403 |
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/react-dropzone#sponsor)] |
| 404 |
|
| 405 |
<a href="https://opencollective.com/react-dropzone/sponsor/0/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/0/avatar.svg"></a> |
| 406 |
<a href="https://opencollective.com/react-dropzone/sponsor/1/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/1/avatar.svg"></a> |
| 407 |
<a href="https://opencollective.com/react-dropzone/sponsor/2/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/2/avatar.svg"></a> |
| 408 |
<a href="https://opencollective.com/react-dropzone/sponsor/3/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/3/avatar.svg"></a> |
| 409 |
<a href="https://opencollective.com/react-dropzone/sponsor/4/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/4/avatar.svg"></a> |
| 410 |
<a href="https://opencollective.com/react-dropzone/sponsor/5/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/5/avatar.svg"></a> |
| 411 |
<a href="https://opencollective.com/react-dropzone/sponsor/6/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/6/avatar.svg"></a> |
| 412 |
<a href="https://opencollective.com/react-dropzone/sponsor/7/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/7/avatar.svg"></a> |
| 413 |
<a href="https://opencollective.com/react-dropzone/sponsor/8/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/8/avatar.svg"></a> |
| 414 |
<a href="https://opencollective.com/react-dropzone/sponsor/9/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/9/avatar.svg"></a> |
| 415 |
<a href="https://opencollective.com/react-dropzone/sponsor/10/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/10/avatar.svg"></a> |
| 416 |
<a href="https://opencollective.com/react-dropzone/sponsor/11/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/11/avatar.svg"></a> |
| 417 |
<a href="https://opencollective.com/react-dropzone/sponsor/12/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/12/avatar.svg"></a> |
| 418 |
<a href="https://opencollective.com/react-dropzone/sponsor/13/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/13/avatar.svg"></a> |
| 419 |
<a href="https://opencollective.com/react-dropzone/sponsor/14/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/14/avatar.svg"></a> |
| 420 |
<a href="https://opencollective.com/react-dropzone/sponsor/15/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/15/avatar.svg"></a> |
| 421 |
<a href="https://opencollective.com/react-dropzone/sponsor/16/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/16/avatar.svg"></a> |
| 422 |
<a href="https://opencollective.com/react-dropzone/sponsor/17/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/17/avatar.svg"></a> |
| 423 |
<a href="https://opencollective.com/react-dropzone/sponsor/18/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/18/avatar.svg"></a> |
| 424 |
<a href="https://opencollective.com/react-dropzone/sponsor/19/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/19/avatar.svg"></a> |
| 425 |
<a href="https://opencollective.com/react-dropzone/sponsor/20/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/20/avatar.svg"></a> |
| 426 |
<a href="https://opencollective.com/react-dropzone/sponsor/21/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/21/avatar.svg"></a> |
| 427 |
<a href="https://opencollective.com/react-dropzone/sponsor/22/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/22/avatar.svg"></a> |
| 428 |
<a href="https://opencollective.com/react-dropzone/sponsor/23/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/23/avatar.svg"></a> |
| 429 |
<a href="https://opencollective.com/react-dropzone/sponsor/24/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/24/avatar.svg"></a> |
| 430 |
<a href="https://opencollective.com/react-dropzone/sponsor/25/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/25/avatar.svg"></a> |
| 431 |
<a href="https://opencollective.com/react-dropzone/sponsor/26/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/26/avatar.svg"></a> |
| 432 |
<a href="https://opencollective.com/react-dropzone/sponsor/27/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/27/avatar.svg"></a> |
| 433 |
<a href="https://opencollective.com/react-dropzone/sponsor/28/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/28/avatar.svg"></a> |
| 434 |
<a href="https://opencollective.com/react-dropzone/sponsor/29/website" target="_blank"><img src="https://opencollective.com/react-dropzone/sponsor/29/avatar.svg"></a> |
| 435 |
|
| 436 |
|
| 437 |
### Hosting |
| 438 |
[react-dropzone.js.org](https://react-dropzone.js.org/) hosting provided by [netlify](https://www.netlify.com/). |
| 439 |
|
| 440 |
## Contribute |
| 441 |
Checkout the organization [CONTRIBUTING.md](https://github.com/react-dropzone/.github/blob/main/CONTRIBUTING.md). |
| 442 |
|
| 443 |
## License |
| 444 |
MIT |