I need to show the name of the currently selected file (in
For security reasons, it is not possible to get the real, full path of a file, referred through an
<input type="file" /> element.
This question already mentions, and links to other Stack Overflow questions regarding this topic.
string = string.split("\\");
\n). If you want to use a literal backslash, a double backslash has to be used.
So, if you want to match two backslashes, four backslashes has to be used. For example,
alert("\\\\") will show a dialog containing two backslashes.