V
vunet
My form uploads files by submitting them to hidden IFrame. I set
enctype "multipart/form-data" dynamically. This works great everywhere
but IE6.
I discovered that in IE6 I need to set encoding instead of enctype. So
I built the following:
if(document.all) form.encoding = "multipart/form-data";
else form.enctype = "multipart/form-data";
form.submit();
if(document.all) form.encoding = "";
else form.enctype = "";
But after submitting, form encoding property cannot be found. How do I
handle this process correctly?
Thanks.
enctype "multipart/form-data" dynamically. This works great everywhere
but IE6.
I discovered that in IE6 I need to set encoding instead of enctype. So
I built the following:
if(document.all) form.encoding = "multipart/form-data";
else form.enctype = "multipart/form-data";
form.submit();
if(document.all) form.encoding = "";
else form.enctype = "";
But after submitting, form encoding property cannot be found. How do I
handle this process correctly?
Thanks.