It's not a secret anymore!
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: 63839


[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: File select with restictions
jQuery in Action, 3rd edition