jQuery val() function and file input field in IE
Posted
by Mithun P
on Stack Overflow
See other posts from Stack Overflow
or by Mithun P
Published on 2010-06-18T12:21:51Z
Indexed on
2010/06/18
12:33 UTC
Read the original article
Hit count: 522
I have a file inputfile
<input tye='file' id='funPic' name='funPic' />
I need to get the name of the selected file,
$('#funPic').val()
in Firefox and Chrome gives abc.jpg
where as IE7 & IE8 gives c:\xyz\abc.jpg
Why is this? I need only the abc.jpg
part.
© Stack Overflow or respective owner