MSIE 9 bug – enctype multipart/form-data

Fixing Coldfusion error message
Invalid content type: application/x-www-form-urlencoded.The files upload action requires forms to use enctype=””multipart/form-data””.

It is a bit misleading since we usually list the enctype. However for MSIE 9 Encoding must be there too.

<CFForm action=”somepage.cfm” method=”put”, enctype=”multipart/form-data”, encoding=”multipart/form-data” >

Or if using Javascript for form submission

With (document.formname){
action = 'somepage.cfm';

Cup size   
Select size then click on coffee cup.
This entry was posted in Code, Coldfusion, Javascript, Problems & Fixes. Bookmark the permalink.