Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

browse button should display only file types All Files (*.*)

 
Girjesh Trivedi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using this struts code

<html:file property="exportBean.file" style="width:220px; height:24px;" styleId="file" />

this code generate a browse button to browse a file.
when I am clicking on this button a dialog box appears and in file of types drop down ,I want to change the type,I am using internet explorer.
plz suggest me the solution how can I change the file types in dialog box for browse button.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've also wondered if it might be possible to filter the file selection, so I did a little research. For Internet explorer, filtering the file browse to accept only certain file types is not supported, but some other browsers may support it. Here's a good link on the subject:

http://www.cs.tut.fi/~jkorpela/forms/file.html
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic