The .val() should work. I've tried it and it works on FF3.5, IE6+,
Safari and Chrome (all WinXP).
The only differences I found is that FF, Safari, Chrome returns just
the filename, whereas IE6+7 returns the full path of the user file
(privacy issue), and IE8 uses 'C:\fakepath' as the directory
(misleading..).

On Oct 30, 8:29 am, Adonis <achrysoch...@hotmail.com> wrote:
> hi,
>
> I was wondering if anyone knows a way to get the file name(the one the
> user has just browsed and is about to upload using the form) from a
> form input.
> I tried $("#fileInput").val() but it does not work.
>
> cheers,

Reply via email to