Is NO WAY AT ALL really restricting the types of files that appear in the view file window? I tried this:
<input type="file" accept="text/xml" name="parameter_file" />
Firefox, IE just ignores it. I found the following excerpt from another question:
The Accept attribute was introduced in RFC 1867, intending to enable file filtering based on the MIME type for the file selection control. But most, if not all, browsers do not use this attribute.
How else can I do this? I know that you can achieve this with Flash, but I really don't want to use Flash.
I will check the selected file type on the server side, but I would like to improve the user interface by simplifying the display of only XML files.
Thanks to everyone for any help.
source
share