-1

How can I show only XSD files in a file input element? I tried like this

<input type="file" accept="text/xsd" > 

But is not working , its allowing all file formats .

Charlie
  • 22,886
  • 11
  • 59
  • 90

1 Answers1

0

The way the constraints are specified is not correct. It should be like this:

<input type="file" accept=".xsd" >
Charlie
  • 22,886
  • 11
  • 59
  • 90