 <p>Have a solution for you. First check if browser is IE, next use encodeURI to encode all the file path and name, you have to do that first in order to correctly capture the unescaped chars like "\". Then just replace, its working for me:</p> <pre><code>var browserName=navigator.appName; if (browserName=="Microsoft Internet Explorer") { var soloNombre = encodeURI(soloNombre); soloNombre = soloNombre.replace("C:%5Cfakepath%5C",""); var soloNombre = decodeURI(soloNombre); alert(soloNombre); } </code></pre> <p>Works like a charm.</p>