File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes accept attribute in <html:file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "accept attribute in <html:file" Watch "accept attribute in <html:file" New topic

accept attribute in <html:file

Missy Suraj

Joined: Mar 31, 2011
Posts: 3
Hi All!

i want to have file filter in html file upload.
My code is

<input type="file" accept="application/xml,appliocation/csv" />

this is working fine in opera but not in browsers like IE and Mozilla..

Any help???

Raj Chila
Ranch Hand

Joined: Mar 18, 2004
Posts: 128

I Hope its not because of the typo
I agree. Here's the link:
subject: accept attribute in <html:file
It's not a secret anymore!