The backslash character in javascript is used to call special characters such as tabs, carriage returns, etc. In the javascript line, if you want to represent the actual backslash character, use '\\' and it will be treated as one backslash. Try the following:
$.ajax({ type:"POST", dataType: "html", url: url, data: { sendValue: { file_name: "C:\\WINDOWS\\Temp\\phpABD.tmp" } }, complete: function (upload) { alert(upload.responseText); } });
Here's the w3schools page on javascript lines .
source share