This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Similar Threads
OTA deployment issues
File[] theFiles = aFile.listFiles(aFilenameFilter)
Problem using JSF and Tiles
validate a file extension
Excel-format report