diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:30:25 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:30:25 +0100 |
| commit | f9e4b621c9daf66a599c28481b3bf59926144461 (patch) | |
| tree | dd65d91ccc5a7e29513bbf91766a40bd29133e24 /client/faceSearch/faceSearch.query.js | |
| parent | 19f449da683c4a629a40bc6d420e94a25a30a7f6 (diff) | |
query html
Diffstat (limited to 'client/faceSearch/faceSearch.query.js')
| -rw-r--r-- | client/faceSearch/faceSearch.query.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/faceSearch/faceSearch.query.js b/client/faceSearch/faceSearch.query.js index 9313c538..1261269d 100644 --- a/client/faceSearch/faceSearch.query.js +++ b/client/faceSearch/faceSearch.query.js @@ -6,6 +6,7 @@ import * as actions from './faceSearch.actions' class FaceSearchQuery extends Component { upload(e) { + const { payload } = this.props const files = e.dataTransfer ? e.dataTransfer.files : e.target.files let i let file @@ -14,7 +15,7 @@ class FaceSearchQuery extends Component { if (file && file.type.match('image.*')) break } if (!file) return - this.props.actions.upload(file) + this.props.actions.upload(this.props.payload, file) } render() { |
