How to restrict input file from accepting .pptx, .docx, .xlsx when using
<input type="file" title="" onChange={handleUpload} accept=".zip" />
I want my input to only access .zip no other file type. But when I use the same in accept attribute it also allows .pptx, .docx, .xlsx