Link to home
Start Free TrialLog in
Avatar of radhika1306
radhika1306

asked on

File open dialog box

i am using this html:file property

<html:file property="relationshipLimitsFile" size="25" accept="text/*" disabled="true" />

when i click on the browse button i see the Open File Dialog
and files of type shows "Allfiles " i want to change this to *.csv or *.txt
is this possible and if so how
ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of atul_parmar
Although it is specified in the HTML 4.01 specification but it is not supported by IE. However, Netscape 4 has little selectability (you can select it to be HTML) but can't change it to *.CSV or *.TXT

But if your intentioin is to prevent the user from selecting any otherfile (other than *.CSV or *.TXT) then better you write a javascript what checks the extention and doesn't accept it if it is not *.CSV or *.TXT

Regards,