Input="file" Accept Attribute File Type (CSV) working in MacOS chrome but does not work in Windows

809 Views Asked by At

I have an <input> tag which i am using for uploading the .csv files. It looks like it works totally ok in my Mac OS chrome and other browsers but the same allows all the other files that can be uploaded in Windows.

<input
  type="file" 
  id="fileElem"
  accept=".csv"
  style={{ display: 'none' }}
  onChange={onChange}
/>

Any leads where am I going wrong?

0

There are 0 best solutions below