I have a standard HTML input with the following configuration.
<input type='file' placeholder='Select file' onChange={handleChange} />
The input is processed by a button click with event handlers attached.
I want to replace this element with a KendoReact component that can restrict file types uploaded. Is the Upload component with autoUpload disabled the best option?
<Upload
autoUpload={false}
onChange={handleChange}
onClick={uploadFile}
batch={false}
restrictions={{ allowedExtensions: ['.jpg', '.png'] }}
defaultFiles={[]}
withCredentials={false} />
How do I expose the onClick event for the Upload component's submit button?