A
Andrea Desole
I'm trying to implement a file upload to upload only xml files. I tried
accept="text/xml", but that doesn't seem to work, with both Firefox and
IE (which is the browser I am writing the application for). The only
information I found tells me that browsers usually disregard the accept
attribute, for a reason that I absolutely can't understand. Accept is
part of HTML, and there is no reason for me not to consider it. Also,
specifying what files to show in an open dialog looks to me a perfectly
normal thing to do.
Can anyone explain this strange behavior, and if there is a solution for
that?
Thanks
Andrea
accept="text/xml", but that doesn't seem to work, with both Firefox and
IE (which is the browser I am writing the application for). The only
information I found tells me that browsers usually disregard the accept
attribute, for a reason that I absolutely can't understand. Accept is
part of HTML, and there is no reason for me not to consider it. Also,
specifying what files to show in an open dialog looks to me a perfectly
normal thing to do.
Can anyone explain this strange behavior, and if there is a solution for
that?
Thanks
Andrea