-3

Is there any functionality to determine that which files may be chosen, if I use a file-upload-input-element and I click on "browse" and only see e.g. PDF Files ? The allowed extensions can maybe readout from an array before?

p.s. the link above is not a cross browser solution..

Gabriel
  • 81
  • 2
  • 9

1 Answers1

1

It seems there is a jquery plugin that approaches this problem. It uses HTML5 to detect the chosen file mimetype. All you have to do is to find out what mimetype is the kind of file that you want to allow.

Accept Method