• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:file tag to upload a file. show by default *.xls

 
malli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using html:file tag to upload a file. My requirement is to show by default *.xls files as file type when I click on the browse button, but by default it shows ., *.html, and .gif/.jpg.
So is there any way to set file type by default to *.xls in choose file dialogue box.

Thanks

Cheers
Mallik
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There may be a browser-dependent way to restrict what types of files it will show; it's not really a Struts question though. Have you tried searching the web?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic