It is a bug. In Firefox it only displays the file name, while in Chrome and IE9 it displays C:\fakepath\...

The reason why this is a bug is because the user will look for the path to see if it exists (he will first think the application copied the file he browsed for to that location). When he cannot find the location, he will close the application because he won't understand what are you doing to the file(s) he's trying to import.

Like I said earlier, it should either display only the file name or the entire path to the file.

Veliscu Ovidiu
added a comment - 26/Jul/12 1:09 AM It is a bug. In Firefox it only displays the file name, while in Chrome and IE9 it displays C:\fakepath\...
The reason why this is a bug is because the user will look for the path to see if it exists (he will first think the application copied the file he browsed for to that location). When he cannot find the location, he will close the application because he won't understand what are you doing to the file(s) he's trying to import.
Like I said earlier, it should either display only the file name or the entire path to the file.

It's the behavior of browser, yes, it will display c:\fakepath.... in IE and chrome. That means you can't display full path in IE and Chrome. the c:\fakepath is added by browser, and javascript code can't get the full path of the selected file, in other web application, it's same, you will see c:\fakepath\.. .
javascript could replace the path of display, so, I replease this path as the selected file name and checked in

徐勇 (Inactive)
added a comment - 26/Jul/12 1:21 AM It's the behavior of browser, yes, it will display c:\fakepath.... in IE and chrome. That means you can't display full path in IE and Chrome. the c:\fakepath is added by browser, and javascript code can't get the full path of the selected file, in other web application, it's same, you will see c:\fakepath\.. .
javascript could replace the path of display, so, I replease this path as the selected file name and checked in