Within the input tag, you can specify an "accept" attribute.  From  
www.w3.org:

"This attribute specifies a comma-separated list of content types that  
a server processing this form will handle correctly. User agents may  
use this information to filter out non-conforming files when prompting  
a user to select files to be sent to the server (cf. the INPUT element  
when type="file")."

The last time I used this, none of the user-agents I had access  
supported it, but they may now.  Give it a try and let us know what you  
find.  Either way, I wouldn't count on it.  I would include some  
server-side checking, too.

Christian

On Tuesday, December 31, 2002, at 12:52 PM, Randell B Adkins wrote:

> Is there anyway to assign a class file to the BROWSE button
> on an input type of FILE?
>
> Maybe you can and I am just not with it today to find out how.
>
> Thanks!!
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to