<div cssName="row upload-btn-box">
<Button
htmlFor="myInput"
component="span"
className="upload-btn"
>
{/* <span> <img src={Upload} alt="Upload Certificate" /> </span> */}
Upload Certificate
</Button>
<input
id="myInput"
style={{ display: 'none' }}
type={"file"}
onChange={fileSelectedHandler}
/>
</div>
this the code i am using i have seen many stack over flow but nothing is working . where i am doing mistake why the dialog for uploading file is not opening