Added onFileDrop() event to documentation

In case anyone wants to use the onFileDrop event to handle the files in their own way, I've added it to the documentation.
This commit is contained in:
Joshua Terrill
2017-08-01 15:08:21 -07:00
committed by GitHub
parent 41759be974
commit 28d98bc8af

View File

@@ -43,6 +43,7 @@ Easy to use Angular2 directives for files upload ([demo](http://valor-software.g
- `fileOver` - it fires during 'over' and 'out' events for Drop Area; returns `boolean`: `true` if file is over Drop Area, `false` in case of out.
See using in [ts demo](https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.ts) and
[html demo](https://github.com/valor-software/ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.html)
- `onFileDrop` - it fires after a file has been dropped on a Drop Area; you can pass in `$event` to get the list of files that were dropped. i.e. `(onFileDrop)="dropped($event)"`
# Troubleshooting