> Hi, I'm trying to create a input form that will only accept PDF's and images. > accept="application/pdf,image/tiff,image/jpeg,image/x-png"
The "accept" attribute is used on CFFILE when it's performing the upload action on the target page, not within the CFINPUT tag itself. CFFILE compares the mime/type of the file as submitted by the browser against the list specified to see if there is a match. You would then need to wrap CFFILE with CFTRY/CFCATCH to catch the error and handle it appropriately. -Justin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341730 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

