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';
method='put';
enctype='multipart/form-data';
encoding='multipart/form-data';
submit();
}