Believe it or not, browsers are supposed too be able to do this. According to W3C the input attribute "accept" should be able to be applied which would filter out results. Unfortunately most browsers don't follow this feature. I think Opera is the only one that actually does this. Which is very unlike Opera.
See http://www.w3.org/TR/html401/interact/forms.html - 17.4 The INPUT element You should be able to do this... <cfinput name="uploadAFile" type="file" accept="application/pdf"> -----Original Message----- From: Ian Skinner [mailto:[email protected]] Sent: Wednesday, July 01, 2009 5:01 PM To: cf-talk Subject: Re: cfinput question Les Irvin wrote: > I'm using the <cfinput type="file"> tag to upload pdfs to the server. > Is there a way in Cold Fusion to, when the file upload / browse dialog > comes up, restrict it to only show pdf files? Or is that an operating > system / java / something else function? > > Thanks in advance, > Les Yup that is an operating system/ Java / Something else function. Browsers do not support this type of functionality. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324137 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

