Well I spent so long finding where the problem was I thought I'd share. Chronoforms has a nice bit of JS to see if there is a file upload field and if so change the "enctype" of the form to allow it to send through files:
However for some reason I could not get this to work in IE6 unless I wrote `enctype="multipart/form-data"` explicitly into the <form> tag (in cc.html.php), after a long long time trying to figure out why the JS worked in ff but not ie I found that when writing explicitly into the form tag the form property "encoding" gets set to "multipart/form-data" also. But it does NOT get set when using this code above. So I added a line into the above bit of script and now I have no problems:
please let me know if I have done something stupid!
Tom
window.addEvent('domready', function() {
if($chk($E('input[type=file]', $('<?php echo "ChronoContact_".$rows[0]->name; ?>')))){
$('<?php echo "ChronoContact_".$rows[0]->name; ?>').setProperty('enctype', 'multipart/form-data');
}
});
However for some reason I could not get this to work in IE6 unless I wrote `enctype="multipart/form-data"` explicitly into the <form> tag (in cc.html.php), after a long long time trying to figure out why the JS worked in ff but not ie I found that when writing explicitly into the form tag the form property "encoding" gets set to "multipart/form-data" also. But it does NOT get set when using this code above. So I added a line into the above bit of script and now I have no problems:
window.addEvent('domready', function() {
if($chk($E('input[type=file]', $('<?php echo "ChronoContact_".$rows[0]->name; ?>')))){
$('<?php echo "ChronoContact_".$rows[0]->name; ?>').setProperty('enctype', 'multipart/form-data');
$('<?php echo "ChronoContact_".$rows[0]->name; ?>').setProperty('encoding', 'multipart/form-data');
}
});
please let me know if I have done something stupid!
Tom