I am trying to use Ajax and the FormData() object to send a file (as a blob) and it's full path and name to the server. I can do this with a simple file name ("Page1.htm") but if I send any sort of path it gets stripped out and just the base file name is left. How can I send a whole path and file name?
Client-side Javasctipt:
var pageblob = new Blob([pagecontent)], {type: "text/html"});
var formdata = new FormData();
formdata.append("Page", pageblob, "/path/pagename.htm");
Server-sdie PHP:
echo $_FILES["Page"]["name"];