wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes File select with restictions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "File select with restictions" Watch "File select with restictions" New topic

File select with restictions

rahulJ james
Ranch Hand

Joined: Oct 03, 2008
Posts: 123
Is there a way to restict the file file selection through browse button. I found the accept attribute in the input tag. But however, I am not able to use that to restrict the browse selection only for html files.

Can someone help
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60822


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: File select with restictions
Similar Threads
Creating a browse button
File Selection tag in JSF
Want a suggestion regarding upload and save in database using struts 2.0
browse button should display only file types All Files (*.*)
Ajax Problem