dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
535 B
535 B
You can programmatically invoke default OS file promt. In order to do that you'll have to set the ref on your Dropzone instance and call the instance open method.
let dropzoneRef;
<div>
<Dropzone ref={(node) => { dropzoneRef = node; }} onDrop={(accepted, rejected) => { alert(accepted) }}>
<p>Drop files here.</p>
</Dropzone>
<button type="button" onClick={() => { dropzoneRef.open() }}>
Open File Dialog
</button>
</div>
The completion handler for the open function is also the onDrop function.