aspose file tools*
The moose likes Struts and the fly likes html:file tag to upload a file. show by default *.xls    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file tag to upload a file. show by default *.xls    " Watch "html:file tag to upload a file. show by default *.xls    " New topic
Author

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

malli
Greenhorn

Joined: Dec 12, 2006
Posts: 6
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

Joined: Sep 29, 2008
Posts: 12617

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:file tag to upload a file. show by default *.xls