Well, i am pretty stuck so i am opening another question about styling the file-fileupload form element.
After some tryings i'll finally (thought) i had it working, but then as usual IE will start protesting ones again. The thing is, i'll have the following form, it hides the real file-input with css and so it replaces it with a fake one, using the fileHiddenInput div.
html:
<form enctype="multipart/form-data" method="post" name="uploadform" action = "">
<div class="input-append">
<input type="text" id = "appendedInputButtons" class="span2" name="fileuploadtext"><input type="button" id="upbutton" class="btn" value="Select"><input type="submit" name="upload" value="uploaden" class="btn">
</div>
**<div class="fileHiddenInput"><input id="upfile" type="file" name="file" value="upload" /></div>**
</form>
css:
/** file input **/
.fileHiddenInput {
height: 0px;
width: 0px;
overflow:hidden;
}
I'll use some jquery to send the form, i could place that code also here. But after many trial and error, i'll found out that IE9 won't send the file-input as long if keep hiding the file-input with css using the fileHiddenInput div. When make i'll make the file-input visible by removing the fileHiddenInput div or making it visible using css, then the form just get send as it should do.
Does anyone know or does anyone has found a workaround?