0

Does the accept attribute for an input of file type work differently per operating system?

<input type="file" accept="video/*"  />

On a mac computer this limits so that only a video type file can be chosen. But on windows it still allows you to select anything.

Is there different syntax that must be used per operating system? Or am i over looking something?

Any help is greatly appreciated.

David Brierton
  • 6,977
  • 12
  • 47
  • 104

1 Answers1

2

Could possibly be with a browser compatiablity issue make sure whatever browser your using is up to date.

Another way of doing this would be to state the file types of what you are willing to accept.

Some links that could be useful:

Safari <input type="file" accept="video/*"> ignores mp4 files

How to make <input type="file"/> accept only these types?

JohnB
  • 808
  • 6
  • 12